frontend: source: Fix conflicting block-scoped variable
This commit is contained in:
parent
5813bd1b8e
commit
13e064bc56
1 changed files with 3 additions and 3 deletions
|
@ -186,11 +186,11 @@ class SourceResolver {
|
|||
return await this.wrapLeafFile(imagesZip, factoryPath || src)
|
||||
}
|
||||
|
||||
let factoryPath = (await fs.readdir(src))
|
||||
let newFactoryPath = (await fs.readdir(src))
|
||||
.find(f => f.startsWith(`${this.device}-${this.buildId}-factory-`))
|
||||
if (factoryPath != undefined) {
|
||||
if (newFactoryPath != undefined) {
|
||||
// Factory images zip
|
||||
return await this.wrapLeafFile(`${src}/${factoryPath}`, factoryPath)
|
||||
return await this.wrapLeafFile(`${src}/${newFactoryPath}`, newFactoryPath)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue