Skip to content

Commit

Permalink
fix: lint/type
Browse files Browse the repository at this point in the history
  • Loading branch information
lishaduck authored and jfmengels committed Nov 12, 2024
1 parent 0cad168 commit 4977bb1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,7 @@ process.on('unhandledRejection', errorHandler);
* @returns {never}
*/
function errorHandler(err) {
// eslint unicorn/no-useless-undefined: ["warn", {"checkArguments": false}] -- Bad TS type.
// eslint-disable-next-line unicorn/no-useless-undefined -- Above doesn't work?
Spinner.fail(undefined);
Spinner.fail();
let userSrc = null;
try {
userSrc = options.userSrc();
Expand Down
2 changes: 1 addition & 1 deletion lib/spinner.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function succeedAndNowDo(text) {
/**
* Fails the current task and replaces its text with the given text.
*
* @param {string | undefined} text
* @param {string | undefined} [text]
* @returns {void}
*/
function fail(text) {
Expand Down

0 comments on commit 4977bb1

Please sign in to comment.