Skip to content

Commit

Permalink
fix RuntimeTemplate
Browse files Browse the repository at this point in the history
  • Loading branch information
vankop committed Nov 29, 2021
1 parent f1e9221 commit 591cb62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/RuntimeTemplate.js
Expand Up @@ -200,7 +200,7 @@ class RuntimeTemplate {

// when the first two args are expression, we need to prepend "" + to force string
// concatenation instead of number addition.
return typeof args[0] !== "string" && args[1] !== "string"
return typeof args[0] !== "string" && typeof args[1] !== "string"
? `"" + ${str}`
: str;
}
Expand Down

0 comments on commit 591cb62

Please sign in to comment.