Skip to content

Commit

Permalink
remove useless if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
robinLudan committed Aug 12, 2024
1 parent adc905b commit c6fb95a
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 c6fb95a

Please sign in to comment.