chore(gitlab/github/util): fix golangci-lint issues

This commit is contained in:
fwiedmann
2019-08-08 21:01:40 +02:00
parent ff82ec7acd
commit c9d9420037
3 changed files with 19 additions and 16 deletions

View File

@@ -187,8 +187,5 @@ func IsValidResult(resp *http.Response) error {
// ShouldRetry request
func ShouldRetry(resp *http.Response) bool {
if resp.StatusCode == http.StatusTooManyRequests {
return true
}
return false
return resp.StatusCode == http.StatusTooManyRequests
}