Skip to content

Commit

Permalink
fix: fix dir not empty func
Browse files Browse the repository at this point in the history
Co-authored-by: Florent BEAUCHAMP <florent.beauchamp@vates.tech>
  • Loading branch information
NadineYasser1 and fbeauchamp authored Mar 7, 2025
1 parent c3edfa5 commit 6a3e253
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion @xen-orchestra/fs/src/azure.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export default class AzureHandler extends RemoteHandlerAbstract {
const iterator = this.#containerClient.listBlobsFlat({ prefix }).byPage({ maxPageSize: 1 })

const { value } = await iterator.next()
return !!(value && value.segment && value.segment.blobItems.length)
return value?.segment?.blobItems?.length ?? 0 > 0

Check failure on line 77 in @xen-orchestra/fs/src/azure.js

View workflow job for this annotation

GitHub Actions / CI

Comparing to itself is potentially pointless
}

async #streamToBuffer(readableStream, buffer) {
Expand Down

0 comments on commit 6a3e253

Please sign in to comment.