Skip to content

Commit

Permalink
chore: simplify conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
gurgunday committed Aug 12, 2024
1 parent a7e4a1b commit f6f84bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ const Match = class {
if (index < 0) {
const bytesToCutOff = this.#lookbehindSize + index;

if (bytesToCutOff > 0) {
if (bytesToCutOff) {
this.#callback(false, 0, bytesToCutOff, this.#lookbehind, null);
}

Expand Down

0 comments on commit f6f84bc

Please sign in to comment.