Skip to content

Commit

Permalink
remove superfluous condition
Browse files Browse the repository at this point in the history
  • Loading branch information
hgrsd committed Nov 14, 2021
1 parent 4d25617 commit 3e6bd20
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ function argsMatch (
if (Array.isArray(left)) {
if (!Array.isArray(right)) return false
if (left.length !== right.length) return false
if (left.length === 0) return true
return left.every((date, i) => date.getTime() === right[i].getTime())
}

Expand Down

0 comments on commit 3e6bd20

Please sign in to comment.