Procházet zdrojové kódy

Let's keep it short

Piotr Czajkowski před 3 roky
rodič
revize
ab0351deb2
1 změnil soubory, kde provedl 1 přidání a 5 odebrání
  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
 		}