mirror of
https://github.com/github/codeql.git
synced 2026-05-01 11:45:14 +02:00
simplify expressions that could be type-casts
This commit is contained in:
@@ -71,7 +71,7 @@ private DataFlow::Node getASink() { exists(DataFlow::Configuration cfg | cfg.has
|
||||
* Gets all the alerts for consistency consistency checking from a configuration `conf`.
|
||||
*/
|
||||
private DataFlow::Node alerts(Conf conf) {
|
||||
result = any(ConsistencyConfiguration res | res = conf).getAnAlert()
|
||||
result = conf.(ConsistencyConfiguration).getAnAlert()
|
||||
or
|
||||
not exists(ConsistencyConfiguration r) and
|
||||
result = getASink() and
|
||||
@@ -131,7 +131,7 @@ private File getATestFile(string conf) {
|
||||
result = any(LineComment comment).getFile() and
|
||||
conf = ""
|
||||
or
|
||||
result = any(ConsistencyConfiguration res | res = conf).getAFile()
|
||||
result = conf.(ConsistencyConfiguration).getAFile()
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user