mirror of
https://github.com/gchq/CyberChef.git
synced 2024-11-02 22:21:01 +01:00
linting and comment for readFileSync
This commit is contained in:
parent
d3e6200385
commit
367532cf8d
@ -1027,7 +1027,13 @@ class Utils {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Synchronously read the raw data from a File object.
|
||||
*
|
||||
* Only works in the Node environment
|
||||
*
|
||||
* @param {File} file - a File shim object (see src/node/File.mjs)
|
||||
* @returns {ArrayBuffer} the data from the file in an ArrayBuffer
|
||||
* @throws {TypeError} thrown if the method is called from a browser environment
|
||||
*/
|
||||
static readFileSync(file) {
|
||||
if (!Utils.isNode()) {
|
||||
|
@ -5,7 +5,6 @@
|
||||
*/
|
||||
|
||||
import DishTranslationType from "./DishTranslationType";
|
||||
import Utils from "../Utils";
|
||||
|
||||
/**
|
||||
* Translation methods for ListFile Dishes
|
||||
|
Loading…
Reference in New Issue
Block a user