Skip to content

Commit

Permalink
Merge branch 'channels' of github.com:Ajnasz/dnsbl-check into channels
Browse files Browse the repository at this point in the history
  • Loading branch information
Ajnasz committed Jun 18, 2021
2 parents f864357 + c3b2678 commit 704a88b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ func negate(f func(string) bool) func(string) bool {
}
}

func getLines(reader io.Reader) []string {
func readLines(reader io.Reader) []string {
scanner := bufio.NewScanner(reader)
scanner.Split(bufio.ScanLines)
var text []string
Expand All @@ -167,11 +167,11 @@ func getProvidersFromFile(fn string) ([]string, error) {
}
defer file.Close()

return getLines(file), nil
return readLines(file), nil
}

func getProvidersFromStdin() ([]string, error) {
text := getLines(os.Stdin)
text := readLines(os.Stdin)

return text, nil
}
Expand Down

0 comments on commit 704a88b

Please sign in to comment.