Skip to content

Commit 810baad

Browse files
Java: Fix formatting
1 parent fcfc836 commit 810baad

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

java/ql/src/semmle/code/java/security/CommandArguments.qll

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,9 @@ private class CommandArgumentArray extends SsaExplicitUpdate {
137137
/** Gets an expression that is written to the given index of this array. */
138138
Expr getAWrite(int index) { result = getAWrite(index, _) }
139139

140-
predicate isNotShell() {
141-
exists(Expr e | e = this.(CommandArgArrayImmutableFirst).getFirstElement() |
142-
not isShell(e)
143-
)
144-
}
140+
predicate isNotShell() {
141+
exists(Expr e | e = this.(CommandArgArrayImmutableFirst).getFirstElement() | not isShell(e))
142+
}
145143
}
146144

147145
/**
@@ -186,7 +184,8 @@ private class ImmutableFirstArrayExpr extends Expr {
186184
ma.getArgument(0) instanceof ImmutableFirstArrayExpr
187185
)
188186
or
189-
exists(Field f | this = f.getAnAccess() and
187+
exists(Field f |
188+
this = f.getAnAccess() and
190189
f.isFinal() and
191190
f.getInitializer() instanceof ImmutableFirstArrayExpr
192191
)

0 commit comments

Comments
 (0)