Skip to content

Commit

Permalink
SB: removing new lines from serialized condition due to tier naming i…
Browse files Browse the repository at this point in the history
…ssues
  • Loading branch information
00salmon committed Nov 26, 2019
1 parent 6dee129 commit 28a98a2
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/serializer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,7 @@ export default function serializer(node: AST): string {
"}"
);
} else if (node.type === "condition") {
return (`${serializer(node.condition)} ? ${
serializer(node.then)}
${node.else ?
`: ${serializer(node.else)}`
: ''
}`
);
return (`${serializer(node.condition)} ? ${serializer(node.then)}${node.else ? `: ${serializer(node.else)}` : ''}`);
} else if (node.type === "value") {
if (node.value === null) return "null";
if (node.value === false) return "false";
Expand Down

0 comments on commit 28a98a2

Please sign in to comment.