Skip to content

Commit

Permalink
refactor: Remove unnecessary error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
cheatsnake committed Aug 3, 2022
1 parent 7af2d1f commit 7f9a5f7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pkg/anagram/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@ var wordsDB []string
var wordsDBSize int

func init() {
nouns, err := assists.ReadFileLineByLine(filepath.Join("data", "nouns.txt"))
if err != nil {
println(err.Error())
}
nouns, _ := assists.ReadFileLineByLine(filepath.Join("data", "nouns.txt"))
wordsDB = nouns
wordsDBSize = len(nouns)
}
Expand Down

0 comments on commit 7f9a5f7

Please sign in to comment.