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:
parent
cf5b3b4ea6
commit
bac6fbaaf1
@ -205,7 +205,9 @@ export class Kubectl {
|
|||||||
})
|
})
|
||||||
stream.on("error", (error) => {
|
stream.on("error", (error) => {
|
||||||
logger.error(error)
|
logger.error(error)
|
||||||
fs.unlink(this.path, () => {})
|
fs.unlink(this.path, () => {
|
||||||
|
// do nothing
|
||||||
|
})
|
||||||
reject(error)
|
reject(error)
|
||||||
})
|
})
|
||||||
file.on("close", () => {
|
file.on("close", () => {
|
||||||
|
|||||||
@ -164,7 +164,9 @@ export class LensBinary {
|
|||||||
|
|
||||||
stream.on("error", (error) => {
|
stream.on("error", (error) => {
|
||||||
logger.error(error)
|
logger.error(error)
|
||||||
fs.unlink(binaryPath, () => {})
|
fs.unlink(binaryPath, () => {
|
||||||
|
// do nothing
|
||||||
|
})
|
||||||
throw(error)
|
throw(error)
|
||||||
})
|
})
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
|
|||||||
@ -170,7 +170,7 @@ export class Terminal {
|
|||||||
// Handle custom hotkey bindings
|
// Handle custom hotkey bindings
|
||||||
if (ctrlKey) {
|
if (ctrlKey) {
|
||||||
switch (code) {
|
switch (code) {
|
||||||
// Ctrl+C: prevent terminal exit on windows / linux (?)
|
// Ctrl+C: prevent terminal exit on windows / linux (?)
|
||||||
case "KeyC":
|
case "KeyC":
|
||||||
if (this.xterm.hasSelection()) return false;
|
if (this.xterm.hasSelection()) return false;
|
||||||
break;
|
break;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user