Get rid of annoying lint warnings from an earlier PR

This commit is contained in:
GCHQDeveloper581 2026-06-21 15:16:06 +00:00
parent 84df3c4fc7
commit bc76c1e1dc
No known key found for this signature in database
GPG Key ID: 6222E059A3DF595C

View File

@ -7,7 +7,7 @@
import Operation from "../Operation.mjs";
import Utils from "../Utils.mjs";
import { toHex } from "../lib/Hex.mjs";
import OperationError from "../errors/OperationError.mjs";
import OperationError from "../errors/OperationError.mjs";
/**
* XOR Checksum operation
@ -43,7 +43,7 @@ class XORChecksum extends Operation {
run(input, args) {
const blocksize = args[0];
if (!Number.isInteger(blocksize) || blocksize <= 0) {
throw new OperationError("Blocksize must be a positive integer.");
}