Skip to content

Commit

Permalink
[eslint] enable no-lonely-if
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Jul 26, 2021
1 parent 06eba07 commit 771f3dd
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions test/end-as-callback.js
Expand Up @@ -75,14 +75,11 @@ function getStackTrace(rows) {
if (row.indexOf('---') > -1) { // start of stack trace
extract = true;
}
} else if (row.indexOf('...') > -1) { // end of stack trace
extract = false;
stacktrace += ' ...';
} else {
if (row.indexOf('...') > -1) { // end of stack trace
extract = false;
stacktrace += ' ...';
} else {
stacktrace += row + '\n';
}

stacktrace += row + '\n';
}
});
// console.log(stacktrace);
Expand Down

0 comments on commit 771f3dd

Please sign in to comment.