Skip to content

Commit 731a6d1

Browse files
committed
fix: Simplify Boolean.getBool() method logic
1 parent a4e6a6a commit 731a6d1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ql/lib/codeql/bicep/ast/Literals.qll

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ class Array extends Literals instanceof ArrayImpl {
3434
*/
3535
class Boolean extends Literals instanceof BooleanImpl {
3636
boolean getBool() {
37-
exists(string bl |
38-
bl = BooleanImpl.super.getValue().toLowerCase() and
37+
exists(string bl | bl = BooleanImpl.super.getValue().toLowerCase() |
3938
bl = "true" and
4039
result = true
4140
or

0 commit comments

Comments
 (0)