Browse Source

Let's keep it short

Piotr Czajkowski 3 years ago
parent
commit
ab0351deb2
1 changed files with 1 additions and 5 deletions
  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
 		}