diff --git a/concurrency/v1/check_website.go b/concurrency/v1/check_website.go index 6acf86acd..d3d18428e 100644 --- a/concurrency/v1/check_website.go +++ b/concurrency/v1/check_website.go @@ -9,9 +9,5 @@ func CheckWebsite(url string) bool { return false } - if response.StatusCode != http.StatusOK { - return false - } - - return true + return response.StatusCode == http.StatusOK } diff --git a/concurrency/v2/check_website.go b/concurrency/v2/check_website.go index 6acf86acd..d3d18428e 100644 --- a/concurrency/v2/check_website.go +++ b/concurrency/v2/check_website.go @@ -9,9 +9,5 @@ func CheckWebsite(url string) bool { return false } - if response.StatusCode != http.StatusOK { - return false - } - - return true + return response.StatusCode == http.StatusOK } diff --git a/concurrency/v3/check_website.go b/concurrency/v3/check_website.go index 6acf86acd..d3d18428e 100644 --- a/concurrency/v3/check_website.go +++ b/concurrency/v3/check_website.go @@ -9,9 +9,5 @@ func CheckWebsite(url string) bool { return false } - if response.StatusCode != http.StatusOK { - return false - } - - return true + return response.StatusCode == http.StatusOK }