Piotr Czajkowski 3 жил өмнө
parent
commit
ab0351deb2
1 өөрчлөгдсөн 1 нэмэгдсэн , 5 устгасан
  1. 1 5
      app.go

+ 1 - 5
app.go

@@ -76,11 +76,7 @@ func decodeWord(word []rune, wordLength int, encodedWords []string) (string, []s
 			continue
 		}
 
-		if word[0] != encoded[0] {
-			continue
-		}
-
-		if word[wordLength-1] != encoded[wordLength-1] {
+		if word[0] != encoded[0] || word[wordLength-1] != encoded[wordLength-1] {
 			continue
 		}