Skip to content

Commit 41608ef

Browse files
committed
Address review comments
1 parent 95e50ce commit 41608ef

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

ql/lib/codeql/ruby/security/CodeInjectionCustomizations.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ module CodeInjection {
3535
* A call that evaluates its arguments as Ruby code, considered as a flow sink.
3636
*/
3737
class CodeExecutionAsSink extends Sink {
38-
CodeExecutionAsSink() { exists(CodeExecution c | this = c.getCode()) }
38+
CodeExecutionAsSink() { this = any(CodeExecution c).getCode() }
3939
}
4040
}

ql/lib/codeql/ruby/security/CodeInjectionQuery.qll

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
* otherwise `CodeInjectionCustomizations` should be imported instead.
66
*/
77

8-
private import ruby
98
import codeql.ruby.DataFlow::DataFlow::PathGraph
109
import codeql.ruby.DataFlow
1110
import codeql.ruby.TaintTracking

0 commit comments

Comments
 (0)