diff --git a/corelib/string.rb b/corelib/string.rb
index <HASH>..<HASH> 100644
--- a/corelib/string.rb
+++ b/corelib/string.rb
@@ -266,13 +266,13 @@ class String
       for (var i = 0, length = suffixes.length; i < length; i++) {
         var suffix = suffixes[i];
 
-        if (#{self}.length >= suffix.length && #{self}.substr(0 - suffix.length) === suffix) {
+        if (self.length >= suffix.length && self.substr(0 - suffix.length) === suffix) {
           return true;
         }
       }
-
-      return false;
     }
+
+    false
   end
 
   alias eql? ==
Cleanup String#end_with?