Skip to content
Snippets Groups Projects
Commit 3b9b61c6 authored by Michal Malý's avatar Michal Malý
Browse files

Fix brace issues

parent 8b14505e
No related branches found
No related tags found
No related merge requests found
......@@ -74,30 +74,37 @@ function _watna_check_waters(obj) {
return false;
for (const key in obj) {
if (typeof key !== 'string')
if (typeof key !== 'string') {
return false;
}
if (!WATNA_NTCS.includes(key))
if (!WATNA_NTCS.includes(key)) {
return false;
}
const inner = obj[key];
if (typeof inner !== 'object')
if (typeof inner !== 'object') {
return false;
}
for (const ikey in inner) {
const blocks = ikey.split('_');
if (blocks.length !== 2)
if (blocks.length !== 2) {
return false;
}
if (!WATNA_BASES.includes(blocks[0]) || !WATNA_BASES.includes(blocks[1]))
if (!WATNA_BASES.includes(blocks[0]) || !WATNA_BASES.includes(blocks[1])) {
return false;
}
const val = inner[ikey];
if (typeof val !== 'number')
if (typeof val !== 'number') {
return false;
}
if (val < 0)
if (val < 0) {
return false;
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment