job: remove duplicate if statement (#283)
* job: remove duplicate if statement Signed-off-by: Miguel Ángel Jimeno <miguelangel4b@gmail.com> * contributors: add Miguel Jimeno to CONTRIBUTORS.md Signed-off-by: Miguel Ángel Jimeno <miguelangel4b@gmail.com>
This commit is contained in:
parent
a4b3154484
commit
47c8cafadc
@ -12,6 +12,7 @@
|
|||||||
* [helpermika](https://github.com/helpermika)
|
* [helpermika](https://github.com/helpermika)
|
||||||
* [Ice3man543](https://github.com/Ice3man543)
|
* [Ice3man543](https://github.com/Ice3man543)
|
||||||
* [JamTookTheBait](https://github.com/JamTookTheBait)
|
* [JamTookTheBait](https://github.com/JamTookTheBait)
|
||||||
|
* [jimen0](https://github.com/jimen0)
|
||||||
* [joohoi](https://github.com/joohoi)
|
* [joohoi](https://github.com/joohoi)
|
||||||
* [jvesiluoma](https://github.com/jvesiluoma)
|
* [jvesiluoma](https://github.com/jvesiluoma)
|
||||||
* [lc](https://github.com/lc)
|
* [lc](https://github.com/lc)
|
||||||
|
|||||||
@ -292,12 +292,10 @@ func (j *Job) runTask(input map[string][]byte, position int, retried bool) {
|
|||||||
}
|
}
|
||||||
if j.Config.StopOnAll {
|
if j.Config.StopOnAll {
|
||||||
// increment 429 counter if the response code is 429
|
// increment 429 counter if the response code is 429
|
||||||
if j.Config.StopOnAll {
|
|
||||||
if resp.StatusCode == 429 {
|
if resp.StatusCode == 429 {
|
||||||
j.inc429()
|
j.inc429()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
if j.isMatch(resp) {
|
if j.isMatch(resp) {
|
||||||
// Re-send request through replay-proxy if needed
|
// Re-send request through replay-proxy if needed
|
||||||
if j.ReplayRunner != nil {
|
if j.ReplayRunner != nil {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user