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