Skip to content

Commit

Permalink
Merge pull request #2 from NaturalCycles/fix-combine
Browse files Browse the repository at this point in the history
fix: dont crash on combine empty bucket
  • Loading branch information
flo-monin authored Apr 10, 2024
2 parents 4ae150b + 57fcfd7 commit e6fa0d6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/cloudStorage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,12 @@ export class CloudStorage implements CommonStorage {
`combineFiles reached max recursion depth of ${MAX_RECURSION_DEPTH}`,
)
const { logger, debug } = this.cfg
if (filePaths.length === 0) {
if (debug) {
logger.log(`[${currentRecursionDepth}] Nothing to compose, returning early!`)
}
return
}

if (debug) {
logger.log(
Expand Down

0 comments on commit e6fa0d6

Please sign in to comment.