Skip to content

Commit

Permalink
Fix: Type checking of hostWorkdir in resolveCorrespondingPath
Browse files Browse the repository at this point in the history
  • Loading branch information
idillon-sfl committed Sep 17, 2024
1 parent e9ca7af commit 654b0fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/driver/BitBakeProjectScanner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,8 @@ export class BitBakeProjectScanner {
if (this.containerMountPoint === undefined && !hostToContainer) {
// Should only be called through scanAvailableLayers()
const hostWorkdir = this.bitbakeDriver?.getBuildConfig('workingDirectory')
if (hostWorkdir === undefined) {
throw new Error('hostWorkdir is undefined')
if (typeof hostWorkdir !== 'string') {
throw new Error('hostWorkdir is not a string')
}
await this.scanContainerMountPoint(inputPath, hostWorkdir)
}
Expand Down

0 comments on commit 654b0fc

Please sign in to comment.