Skip to content

Commit

Permalink
style: remove double exclamation mark
Browse files Browse the repository at this point in the history
  • Loading branch information
WikiRik committed Jan 30, 2023
1 parent cef15ac commit 845148d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/isISBN.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default function isISBN(isbn, options) {
}

if ((checksum % 11) === 0) {
return !!sanitizedIsbn;
return true;
}
} else if (version === '13') {
if (!possibleIsbn13.test(sanitizedIsbn)) {
Expand All @@ -47,7 +47,7 @@ export default function isISBN(isbn, options) {
}

if (sanitizedIsbn.charAt(12) - ((10 - (checksum % 10)) % 10) === 0) {
return !!sanitizedIsbn;
return true;
}
}

Expand Down

0 comments on commit 845148d

Please sign in to comment.