Skip to content

Commit 64cd547

Browse files
committedDec 19, 2024·
chore: lint
1 parent 093d966 commit 64cd547

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎src/consola.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ export class Consola {
193193
removeReporter(reporter: ConsolaReporter) {
194194
if (reporter) {
195195
const i = this.options.reporters.indexOf(reporter);
196-
if (i >= 0) {
196+
if (i !== -1) {
197197
return this.options.reporters.splice(i, 1);
198198
}
199199
} else {

‎src/utils/prompt.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,7 @@ export const note = (message = "", title = "") => {
840840
// eslint-disable-next-line unicorn/no-array-reduce
841841
lines.reduce((sum, ln) => {
842842
ln = strip(ln);
843-
return ln.length > sum ? ln.length : sum;
843+
return Math.max(ln.length, sum);
844844
}, 0),
845845
strip(title).length,
846846
) + 2;

0 commit comments

Comments
 (0)
Please sign in to comment.