mirror of
https://github.com/github/codeql.git
synced 2026-04-28 18:25:24 +02:00
ruby: qlformat
This commit is contained in:
@@ -37,4 +37,4 @@ private import codeql.ruby.frameworks.Pg
|
||||
private import codeql.ruby.frameworks.Yaml
|
||||
private import codeql.ruby.frameworks.Sequel
|
||||
private import codeql.ruby.frameworks.Ldap
|
||||
private import codeql.ruby.frameworks.Jwt
|
||||
private import codeql.ruby.frameworks.Jwt
|
||||
|
||||
@@ -22,7 +22,10 @@ module Jwt {
|
||||
override DataFlow::Node getKey() { result = this.getArgument(1) }
|
||||
|
||||
override predicate signsPayload() {
|
||||
not (this.getKey().getConstantValue().isStringlikeValue("") or this.getKey().(DataFlow::ExprNode).getConstantValue().isNil())
|
||||
not (
|
||||
this.getKey().getConstantValue().isStringlikeValue("") or
|
||||
this.getKey().(DataFlow::ExprNode).getConstantValue().isNil()
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user