luci-base: cbi.js cbi_validate_named_section_add() simplify
authorSergey Ponomarev <stokito@gmail.com>
Sat, 23 Sep 2023 07:11:02 +0000 (10:11 +0300)
committerSergey Ponomarev <stokito@gmail.com>
Sat, 23 Sep 2023 07:11:02 +0000 (10:11 +0300)
commit9d384a2140d0c5b3649477e993e72a9ed58a0ca6
tree6682fcbcb1a4b8fd6d56bee9dc73794f13f29ad9
parentd7e905e83a11d59ea217cd37189040bd6c9d403e
luci-base: cbi.js cbi_validate_named_section_add() simplify

Reduce if to a simple boolean evaluation

Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
modules/luci-base/htdocs/luci-static/resources/cbi.js