Skip to content

Commit

Permalink
# Fixed spacing for diverted_paths
Browse files Browse the repository at this point in the history
Signed-off-by: Theo Truong <[email protected]>
  • Loading branch information
nhtruong committed Nov 15, 2024
1 parent a7cfb22 commit da8f7c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export default class FunctionFileRenderer extends BaseRenderer {
path: path.build(true)
}
})
diverged_paths[0].guard = 'if'
diverged_paths[0].guard = ' if'
diverged_paths[diverged_paths.length - 1].guard = 'else'
diverged_paths[diverged_paths.length - 1].condition = ''
return diverged_paths
Expand Down
2 changes: 1 addition & 1 deletion api_generator/src/renderers/templates/function.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function {{{function_name}}}(params, options, callback) {
{{^paths_are_uniform}}
let path;
{{#diverged_paths}}
{{{guard}}}{{{condition}}} {
{{{guard}}}{{{condition}}} {
path = {{{path}}};
}{{/diverged_paths}}
{{/paths_are_uniform}}
Expand Down

0 comments on commit da8f7c2

Please sign in to comment.