1. David Black
  2. atlassian-soy-templates

Commits

David Black  committed 670e7a7

As per feedback in the pull request move the instance of SoyData check up into the first if statement.

Signed-off-by: David Black <dblack@atlassian.com>

  • Participants
  • Parent commits 36fda97
  • Branches do_not_convert_existing_soy_data, issue/SOY-46

Comments (0)

Files changed (1)

File core/src/main/java/com/atlassian/soy/impl/data/SoyDataConverter.java

View file
  • Ignore whitespace
                 || value instanceof Integer
                 || value instanceof Double
                 || value instanceof Float
-                || value instanceof String)
-        {
-            return value;
-        }
-        else if (value instanceof SoyData)
+                || value instanceof String
+                || value  instanceof SoyData
+            )
         {
             return value;
         }