mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-20 14:56:19 -04:00
linting and comment for readFileSync
This commit is contained in:
parent
d3e6200385
commit
367532cf8d
2 changed files with 7 additions and 2 deletions
|
@ -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) {
|
static readFileSync(file) {
|
||||||
if (!Utils.isNode()) {
|
if (!Utils.isNode()) {
|
||||||
|
|
|
@ -5,7 +5,6 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import DishTranslationType from "./DishTranslationType";
|
import DishTranslationType from "./DishTranslationType";
|
||||||
import Utils from "../Utils";
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Translation methods for ListFile Dishes
|
* Translation methods for ListFile Dishes
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue