Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
yoav-steinberg committed Mar 24, 2024
1 parent 9a18ad0 commit efd9c32
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libs/wingc/src/jsify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1361,7 +1361,10 @@ impl<'a> JSifier<'a> {
.implicit_scope_param
}) {
let mut res = CodeMaker::one_line(SCOPE_PARAM);
res.append(parameters);
if !parameters.is_empty() {
res.append(", ");
res.append(parameters);
}
res
} else {
parameters
Expand Down

0 comments on commit efd9c32

Please sign in to comment.