Skip to content

Commit 26d8fa5

Browse files
committed
fix : delete space and add new line
1 parent ad91099 commit 26d8fa5

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/core/operations/BLAKE3.mjs

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import Operation from "../Operation.mjs";
88
import OperationError from "../errors/OperationError.mjs";
9-
import { blake3 } from 'hash-wasm';
9+
import { blake3 } from "hash-wasm";
1010
/**
1111
* BLAKE3 operation
1212
*/
@@ -21,7 +21,7 @@ class BLAKE3 extends Operation {
2121
this.name = "BLAKE3";
2222
this.module = "Hashing";
2323
this.description = "Hashes the input using BLAKE3 (UTF-8 encoded), with an optional key (also UTF-8), and outputs the result in hexadecimal format.";
24-
this.infoURL = "https://en.wikipedia.org/wiki/BLAKE_(hash_function)#BLAKE3";
24+
this.infoURL = "https://en.wikipedia.org/wiki/BLAKE_(hash_function)#BLAKE3";
2525
this.inputType = "string";
2626
this.outputType = "string";
2727
this.args = [
@@ -32,7 +32,7 @@ class BLAKE3 extends Operation {
3232
"name": "Key",
3333
"type": "string",
3434
"value": ""
35-
},
35+
}
3636
];
3737
}
3838

@@ -47,7 +47,7 @@ class BLAKE3 extends Operation {
4747
// Check if the user want a key hash or not
4848
if (key === "") {
4949
return blake3(input, size*8);
50-
}if (key.length !== 32) {
50+
} if (key.length !== 32) {
5151
throw new OperationError("The key must be exactly 32 bytes long");
5252
}
5353
return blake3(input, size*8, key);

tests/operations/tests/BLAKE3.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,4 @@ TestRegister.addTests([
5252
"args": [8, "ThiskeyisexactlythirtytwoByteslo"] }
5353
]
5454
}
55-
]);
55+
]);

0 commit comments

Comments
 (0)