Closed PaulRBerg closed 2 years ago
Done via https://github.com/hifi-finance/hifi/commit/43e08ed4d7fa9aefdae0d07383c9b52fbd0a0a48.
The trick was to add an extra if:
function {{name}}({{#if params}}
{{#each params}}
{{type}} {{name}}{{#if @last}}{{else}},{{/if}}
{{/each}}
{{/if}}) {{visibility}}{{#if returns}} returns ({{printParams returns}}){{/if}}
Related to #70, but in this case the issue is that even if the function does not params, the generate docs still add an empty line in the code snippet:
Which should instead be: