diff --git a/suhwan2004/Valid Palindrome.js b/suhwan2004/Valid Palindrome.js index 9b216ef..7c5b08c 100644 --- a/suhwan2004/Valid Palindrome.js +++ b/suhwan2004/Valid Palindrome.js @@ -26,10 +26,10 @@ var isPalindrome = function (s) { if (sChar !== eChar) { return false; - } else { - start++; - end--; } + + start++; + end--; } return true;