Simplify condition checks to improve code readability

This commit is contained in:
Ullaakut
2018-10-01 19:52:15 +02:00
parent 4109a4405d
commit cf3ca440b9
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -247,7 +247,7 @@ func AttackCredentials(c Curler, targets []Stream, credentials Credentials, time
}
for _, result := range attackResults {
if result.CredentialsFound == true {
if result.CredentialsFound {
targets = replace(targets, result)
}
}
@@ -277,7 +277,7 @@ func AttackRoute(c Curler, targets []Stream, routes Routes, timeout time.Duratio
}
for _, result := range attackResults {
if result.RouteFound == true {
if result.RouteFound {
targets = replace(targets, result)
}
}