diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2025-04-14 16:54:13 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2025-04-14 16:54:13 +0300 |
commit | 333864c5fe098b6993066d73b8d6d8e6fb358eb0 (patch) | |
tree | 039442bc2fb7f1e535087639db34ca3afa30d455 /api/validators | |
parent | b9c719d094c3ac8a802b59d7667a97514d03faed (diff) | |
download | arching-kaos-tools-333864c5fe098b6993066d73b8d6d8e6fb358eb0.tar.gz arching-kaos-tools-333864c5fe098b6993066d73b8d6d8e6fb358eb0.tar.bz2 arching-kaos-tools-333864c5fe098b6993066d73b8d6d8e6fb358eb0.zip |
[api] Removes unnecessary anonymous JS functions
Diffstat (limited to 'api/validators')
-rw-r--r-- | api/validators/ZblockValidator/index.js | 4 | ||||
-rw-r--r-- | api/validators/ZchainValidator/index.js | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/api/validators/ZblockValidator/index.js b/api/validators/ZblockValidator/index.js index e3656d6..e1cfd3f 100644 --- a/api/validators/ZblockValidator/index.js +++ b/api/validators/ZblockValidator/index.js @@ -64,7 +64,8 @@ function continuethings(exitcode,sh,res){ * We send the data tested and the exit code to continuethings() * */ -module.exports = (ch, res) => { +function ZblockValidator(ch, res) +{ const command = spawn("ak",["zchain", "--crawl", ch]); response_string = ""; command.stdout.on("data", data => { @@ -85,3 +86,4 @@ module.exports = (ch, res) => { continuethings(code,ch,res); }); }; +module.exports = ZblockValidator; diff --git a/api/validators/ZchainValidator/index.js b/api/validators/ZchainValidator/index.js index 80939d0..a788719 100644 --- a/api/validators/ZchainValidator/index.js +++ b/api/validators/ZchainValidator/index.js @@ -64,7 +64,8 @@ function continuethings(exitcode,sh,res){ * We send the data tested and the exit code to continuethings() * */ -module.exports = (ch, res) => { +function ZchainValidator(ch, res) +{ const command = spawn("ak",["zchain", "--crawl", "-n", ch]); response_string = ""; command.stdout.on("data", data => { @@ -85,3 +86,5 @@ module.exports = (ch, res) => { continuethings(code,ch,res); }); }; + +module.exports = ZchainValidator; |