From 47c8cafadce5eb5a272a1927bc45174f106bf3fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=2E=20=C3=81ngel=20Jimeno?= Date: Sun, 30 Aug 2020 14:24:13 +0200 Subject: [PATCH] job: remove duplicate if statement (#283) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * job: remove duplicate if statement Signed-off-by: Miguel Ángel Jimeno * contributors: add Miguel Jimeno to CONTRIBUTORS.md Signed-off-by: Miguel Ángel Jimeno --- CONTRIBUTORS.md | 1 + pkg/ffuf/job.go | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index ce4dbb8..73997f1 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -12,6 +12,7 @@ * [helpermika](https://github.com/helpermika) * [Ice3man543](https://github.com/Ice3man543) * [JamTookTheBait](https://github.com/JamTookTheBait) +* [jimen0](https://github.com/jimen0) * [joohoi](https://github.com/joohoi) * [jvesiluoma](https://github.com/jvesiluoma) * [lc](https://github.com/lc) diff --git a/pkg/ffuf/job.go b/pkg/ffuf/job.go index 6259cb6..53e56b4 100644 --- a/pkg/ffuf/job.go +++ b/pkg/ffuf/job.go @@ -292,10 +292,8 @@ func (j *Job) runTask(input map[string][]byte, position int, retried bool) { } if j.Config.StopOnAll { // increment 429 counter if the response code is 429 - if j.Config.StopOnAll { - if resp.StatusCode == 429 { - j.inc429() - } + if resp.StatusCode == 429 { + j.inc429() } } if j.isMatch(resp) {