Skip to content

Commit c12a85b

Browse files
committed
Ruby: autoformat
1 parent 76ed56d commit c12a85b

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

ruby/ql/lib/codeql/ruby/frameworks/Erb.qll

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ module Erb {
1616
private class TemplateSummary extends SummarizedCallable {
1717
TemplateSummary() { this = "ERB.new" }
1818

19-
override MethodCall getACall() {
20-
result = any(ErbTemplateNewCall c).asExpr().getExpr()
21-
}
19+
override MethodCall getACall() { result = any(ErbTemplateNewCall c).asExpr().getExpr() }
2220

2321
override predicate propagatesFlowExt(string input, string output, boolean preservesValue) {
2422
input = "Argument[0]" and output = "ReturnValue" and preservesValue = false

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,6 @@ module TemplateInjection {
4444
* sanitizer-guard.
4545
*/
4646
private class StringConstArrayInclusionCallAsSanitizer extends Sanitizer,
47-
StringConstArrayInclusionCallBarrier { }
47+
StringConstArrayInclusionCallBarrier
48+
{ }
4849
}

0 commit comments

Comments
 (0)