Skip to content

Commit 3ed3c01

Browse files
committed
fix: lint/type
1 parent 0cad168 commit 3ed3c01

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

lib/main.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,7 @@ process.on('unhandledRejection', errorHandler);
4646
* @returns {never}
4747
*/
4848
function errorHandler(err) {
49-
// eslint unicorn/no-useless-undefined: ["warn", {"checkArguments": false}] -- Bad TS type.
50-
// eslint-disable-next-line unicorn/no-useless-undefined -- Above doesn't work?
51-
Spinner.fail(undefined);
49+
Spinner.fail();
5250
let userSrc = null;
5351
try {
5452
userSrc = options.userSrc();

lib/spinner.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ function succeedAndNowDo(text) {
5959
/**
6060
* Fails the current task and replaces its text with the given text.
6161
*
62-
* @param {string | undefined} text
62+
* @param {string | undefined} [text]
6363
* @returns {void}
6464
*/
6565
function fail(text) {

0 commit comments

Comments
 (0)