Skip to content

Commit

Permalink
remove useless if statement (#800)
Browse files Browse the repository at this point in the history
  • Loading branch information
robinLudan authored Aug 12, 2024
1 parent adc905b commit 27a0672
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions concurrency.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,7 @@ import (
)

func mockWebsiteChecker(url string) bool {
if url == "waat://furhurterwe.geds" {
return false
}
return true
return url != "waat://furhurterwe.geds"
}

func TestCheckWebsites(t *testing.T) {
Expand Down

0 comments on commit 27a0672

Please sign in to comment.