Skip to content

Commit

Permalink
fix: sonar issues
Browse files Browse the repository at this point in the history
  • Loading branch information
koladilip committed Jul 2, 2024
1 parent 78fbe36 commit 8e4fe75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export class JsonTemplateEngine {
const translator = new JsonTemplateReverseTranslator(options);
let newExpr = expr;
if (Array.isArray(expr)) {
newExpr = JsonTemplateEngine.parseMappingPaths(expr as FlatMappingPaths[], options);
newExpr = JsonTemplateEngine.parseMappingPaths(expr, options);
}
return translator.translate(newExpr as Expression);
}
Expand Down

0 comments on commit 8e4fe75

Please sign in to comment.