diff --git a/13-loops/exercises/09-word-finder-exercises/02-path-searcher/solution/main.go b/13-loops/exercises/09-word-finder-exercises/02-path-searcher/solution/main.go index f429397..2fe903b 100644 --- a/13-loops/exercises/09-word-finder-exercises/02-path-searcher/solution/main.go +++ b/13-loops/exercises/09-word-finder-exercises/02-path-searcher/solution/main.go @@ -31,15 +31,9 @@ func main() { query := os.Args[1:] for _, q := range query { - search: for i, w := range words { q, w = strings.ToLower(q), strings.ToLower(w) - switch q { - case "and", "or", "the": - break search - } - if strings.Index(w, q) != notFound { fmt.Printf("#%-2d: %q\n", i+1, w) }