Skip to content

Commit

Permalink
remove redundant error check
Browse files Browse the repository at this point in the history
  • Loading branch information
jsadowyj committed Sep 21, 2023
1 parent 733799c commit fd455d7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,7 @@ func checkArgs(event *corev2.Event) (int, error) {

func sendApacheRequest(u string) (*http.Response, error) {
resp, err := http.Get(u)
if err != nil {
return nil, err
}
return resp, nil
return resp, err
}

func parseIdleWorkers(s string) (int, error) {
Expand Down

0 comments on commit fd455d7

Please sign in to comment.