Additional linter corrections

This commit is contained in:
Dan Flack 2024-09-21 12:00:37 +02:00
parent 0f16fa0ce1
commit f61bdf06c6
4 changed files with 74 additions and 83 deletions

View file

@ -5,7 +5,6 @@
*/
import Operation from "../Operation.mjs";
import OperationError from "../errors/OperationError.mjs";
import { SM2 } from "../lib/SM2.mjs";
@ -55,12 +54,11 @@ class SM2Decrypt extends Operation {
run(input, args) {
const [privateKey, inputFormat, curveName] = args;
var sm2 = new SM2(curveName, inputFormat);
const sm2 = new SM2(curveName, inputFormat);
sm2.setPrivateKey(privateKey);
var result = sm2.decrypt(input);
return result
const result = sm2.decrypt(input);
return result;
}
}