diff --git a/src/core/operations/XORChecksum.mjs b/src/core/operations/XORChecksum.mjs index ca9c6fac..338b4bea 100644 --- a/src/core/operations/XORChecksum.mjs +++ b/src/core/operations/XORChecksum.mjs @@ -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."); }