fixed linting

This commit is contained in:
TheSavageTeddy 2022-11-25 10:49:56 +08:00
parent 66cbc6908a
commit c79bf5caaf
1 changed files with 2 additions and 2 deletions

View File

@ -114,9 +114,9 @@ class FromBase85 extends Operation {
.map((chr, idx) => {
const digit = alphabet.indexOf(chr);
if (digit < 0 || digit > 84) {
if (chr === "z"){
if (chr === "z") {
// Pass (Ignore character)
}else{
} else {
throw `Invalid character '${chr}' at index ${i + idx}`;
}
}