Skip to content

Commit

Permalink
adding a comment about moving some code
Browse files Browse the repository at this point in the history
  • Loading branch information
rdingwell committed Oct 10, 2024
1 parent 2406a8f commit fe01714
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/elm/reusable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ export class FunctionRef extends Expression {
if (fDefs.length === 0) {
throw new Error('no function with matching signature could be found');
}

// Moved context creation below the functionDef checks because it's not needed if
// there are no matching function defs
let child_ctx;
if (this.library) {
const libCtx = ctx.getLibraryContext(this.library);
Expand Down

0 comments on commit fe01714

Please sign in to comment.