Skip to content

Commit

Permalink
Style
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker committed May 7, 2024
1 parent fcd0df2 commit 53acbfc
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions rules/no-magic-array-flat-depth.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,7 @@ const create = context => ({

const [depth] = callExpression.arguments;

if (
!isNumberLiteral(depth)
|| depth.value === 1
) {
if (!isNumberLiteral(depth) || depth.value === 1) {
return;
}

Expand Down

0 comments on commit 53acbfc

Please sign in to comment.