Browse Source

fix: clean up a few warnings

Alex White 5 tháng trước cách đây
mục cha
commit
5d9f496512
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      fallout.go

+ 2 - 2
fallout.go

@@ -53,7 +53,7 @@ func main() {
 		}
 
 		if len(game.Words) == 1 {
-			for word, _ := range game.Words {
+			for word := range game.Words {
 				fmt.Printf("The word is: %s\n", word)
 				os.Exit(0)
 			}
@@ -140,7 +140,7 @@ func (g Game) scoreWordsByCommonLetterLocations() error {
 		lastWord = word.Word
 	}
 
-	for idx, _ := range lastWord {
+	for idx := range lastWord {
 		letterIdxScores[idx] = make(map[string]int)
 	}