Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Dokolin <[email protected]>
  • Loading branch information
ppisljar and dokmic authored Mar 15, 2022
1 parent b1ddb60 commit ce05394
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/expressions/common/executor/executor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export class Executor<Context extends Record<string, unknown> = Record<string, u

public getFunction(name: string, namespace?: string): ExpressionFunction | undefined {
const fn = this.container.get().functions[name];
if (!fn || !fn.namespace || fn.namespace === namespace) return fn;
if (!fn?.namespace || fn.namespace === namespace) return fn;
}

public getFunctions(namespace?: string): Record<string, ExpressionFunction> {
Expand Down

0 comments on commit ce05394

Please sign in to comment.