Skip to content

Commit

Permalink
preserve ""
Browse files Browse the repository at this point in the history
  • Loading branch information
gnlow committed Dec 4, 2023
1 parent be12f34 commit 642232b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/visit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export class Visitor {

paramsToExpressions(params: (string | number | Block | null)[]) {
return params
.filter((x): x is Block | number | string => x == 0 || !!x)
.filter((x): x is Block | number | string => x == 0 || x == "" || !!x)
.map(this.blockToExpression.bind(this))
}

Expand Down

0 comments on commit 642232b

Please sign in to comment.