Get rid of annoying lint warnings from an earlier PR
This commit is contained in:
parent
84df3c4fc7
commit
bc76c1e1dc
@ -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.");
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user