Browse Source

Combine similar cases and don't allocate an extra string.

Mark Story 7 years ago
parent
commit
04e046836e
1 changed files with 2 additions and 6 deletions
  1. 2 6
      src/Database/SqlDialectTrait.php

+ 2 - 6
src/Database/SqlDialectTrait.php

@@ -33,12 +33,8 @@ trait SqlDialectTrait
     {
         $identifier = trim($identifier);
 
-        if ($identifier === '*') {
-            return '*';
-        }
-
-        if ($identifier === '') {
-            return '';
+        if ($identifier === '*' || $identifier === '') {
+            return $identifier;
         }
 
         // string