Skip to content

Commit

Permalink
how shameful
Browse files Browse the repository at this point in the history
  • Loading branch information
quii committed Jun 5, 2022
1 parent 0bf1d56 commit f28964a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 15 deletions.
6 changes: 1 addition & 5 deletions concurrency/v1/check_website.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
6 changes: 1 addition & 5 deletions concurrency/v2/check_website.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
6 changes: 1 addition & 5 deletions concurrency/v3/check_website.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit f28964a

Please sign in to comment.