Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Dec 19, 2024
1 parent 093d966 commit 64cd547
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/consola.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ export class Consola {
removeReporter(reporter: ConsolaReporter) {
if (reporter) {
const i = this.options.reporters.indexOf(reporter);
if (i >= 0) {
if (i !== -1) {
return this.options.reporters.splice(i, 1);
}
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/prompt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -840,7 +840,7 @@ export const note = (message = "", title = "") => {
// eslint-disable-next-line unicorn/no-array-reduce
lines.reduce((sum, ln) => {
ln = strip(ln);
return ln.length > sum ? ln.length : sum;
return Math.max(ln.length, sum);
}, 0),
strip(title).length,
) + 2;
Expand Down

0 comments on commit 64cd547

Please sign in to comment.