Fix lint issues

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

No files matched your search

+3 -1
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", () => {
+3 -1
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) => {
+1 -1
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;