Skip to content

Commit 66d230a

Browse files
committed
ruby: qlformat
1 parent 3dd042c commit 66d230a

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

ruby/ql/lib/codeql/ruby/Frameworks.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ private import codeql.ruby.frameworks.Pg
3737
private import codeql.ruby.frameworks.Yaml
3838
private import codeql.ruby.frameworks.Sequel
3939
private import codeql.ruby.frameworks.Ldap
40-
private import codeql.ruby.frameworks.Jwt
40+
private import codeql.ruby.frameworks.Jwt

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ module Jwt {
2222
override DataFlow::Node getKey() { result = this.getArgument(1) }
2323

2424
override predicate signsPayload() {
25-
not (this.getKey().getConstantValue().isStringlikeValue("") or this.getKey().(DataFlow::ExprNode).getConstantValue().isNil())
25+
not (
26+
this.getKey().getConstantValue().isStringlikeValue("") or
27+
this.getKey().(DataFlow::ExprNode).getConstantValue().isNil()
28+
)
2629
}
2730
}
2831

0 commit comments

Comments
 (0)