1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Pass empty function as callback for fs.unlink calls

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
This commit is contained in:
Lauri Nevala 2020-07-29 13:28:56 +03:00
parent 2054f38d08
commit f420f4e8e7
2 changed files with 2 additions and 2 deletions

View File

@ -205,7 +205,7 @@ export class Kubectl {
})
stream.on("error", (error) => {
logger.error(error)
fs.unlink(this.path, null)
fs.unlink(this.path, () => {})
reject(error)
})
file.on("close", () => {

View File

@ -164,7 +164,7 @@ export class LensBinary {
stream.on("error", (error) => {
logger.error(error)
fs.unlink(binaryPath, null)
fs.unlink(binaryPath, () => {})
throw(error)
})
return new Promise((resolve, reject) => {