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

Fix lint issues

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
This commit is contained in:
Lauri Nevala 2020-07-31 11:10:52 +03:00
parent cf5b3b4ea6
commit bac6fbaaf1
3 changed files with 7 additions and 3 deletions

View File

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

View File

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

View File

@ -170,7 +170,7 @@ export class Terminal {
// Handle custom hotkey bindings
if (ctrlKey) {
switch (code) {
// Ctrl+C: prevent terminal exit on windows / linux (?)
// Ctrl+C: prevent terminal exit on windows / linux (?)
case "KeyC":
if (this.xterm.hasSelection()) return false;
break;