mirror of
https://github.com/MichMich/MagicMirror.git
synced 2026-06-09 03:34:51 +00:00
refactor: enable ESLint rule "no-unused-vars" and handle related issues (#4080)
In PR #4072 GitHub Bot complained about an unused var. Instead of just removing that one, I checked why ESLint hadn't complained about it: We had disabled the rule for it. So I enabled rule and resolved the issues that ESLint then detected. Related to #4073
This commit is contained in:
committed by
GitHub
parent
32aa5c8721
commit
8e1630e8bf
@@ -70,7 +70,7 @@ exports.stopApplication = async (timeout = 10000) => {
|
||||
if (electronProcess && !electronProcess.killed) {
|
||||
electronProcess.kill("SIGKILL");
|
||||
}
|
||||
} catch (error) {
|
||||
} catch {
|
||||
// Ignore errors caused by Playwright already tearing down the connection
|
||||
}
|
||||
};
|
||||
@@ -80,7 +80,7 @@ exports.stopApplication = async (timeout = 10000) => {
|
||||
app.close(),
|
||||
new Promise((_, reject) => setTimeout(() => reject(new Error("Electron close timeout")), timeout))
|
||||
]);
|
||||
} catch (error) {
|
||||
} catch {
|
||||
killElectron();
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user