Skip to content
This repository was archived by the owner on Jan 5, 2023. It is now read-only.

Commit 36fa2c2

Browse files
committed
Simplify more code
1 parent 65608a2 commit 36fa2c2

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

ql/src/semmle/go/frameworks/Stdlib.qll

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -684,8 +684,7 @@ module URL {
684684
}
685685

686686
override predicate hasTaintFlow(DataFlow::FunctionInput inp, DataFlow::FunctionOutput outp) {
687-
inp.isReceiver() and
688-
if getName() = "Password" then outp.isResult(0) else outp.isResult()
687+
inp.isReceiver() and outp.isResult(0)
689688
}
690689
}
691690

0 commit comments

Comments
 (0)