Skip to content

Commit

Permalink
chore: self mutation (build.diff)
Browse files Browse the repository at this point in the history
Signed-off-by: monada-bot[bot] <[email protected]>
  • Loading branch information
monadabot committed Sep 2, 2023
1 parent 8bd9fe1 commit e09740a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions libs/wingc/src/jsify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -761,9 +761,7 @@ impl<'a> JSifier<'a> {

// create _toInflightType function that just requires the generated struct file
code.open("static _toInflightType(context) {".to_string());
code.line(format!(
"return `require(\"./${{require('path').basename(__filename)}}\")(${{ context._lift(stdStruct) }})`;",
));
code.line("return `require(\"./${require('path').basename(__filename)}\")(${ context._lift(stdStruct) })`;".to_string());
code.close("}");

// close class
Expand Down

0 comments on commit e09740a

Please sign in to comment.