Skip to content

Commit 64d064c

Browse files
committed
removing ts-ignore because no warning; fixed error logging
1 parent 886884a commit 64d064c

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/auto-launch.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ module.exports = async function () {
9494
logger.error(`[launch on startup] ${String(err)}`)
9595

9696
if (feedback) {
97-
// @ts-ignore
9897
recoverableErrorDialog(err, {
9998
title: i18n.t('launchAtLoginFailed.title'),
10099
message: i18n.t('launchAtLoginFailed.message')

src/run-gc.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,7 @@ module.exports = function runGarbageCollector () {
6161
})
6262
logger.info('[run gc] success')
6363
} catch (err) {
64-
// @ts-ignore
65-
logger.error(`[run gc] ${err.stack}`)
66-
// @ts-ignore
64+
logger.error(`[run gc] ${err}`)
6765
recoverableErrorDialog(err, {
6866
title: i18n.t('runGarbageCollectorErrored.title'),
6967
message: i18n.t('runGarbageCollectorErrored.message')

0 commit comments

Comments
 (0)