Skip to content

Commit 60c2bd5

Browse files
committed
refactor(cli): twig tags
1 parent b6b810e commit 60c2bd5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

templates/cli/base/requests/api.twig

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,13 @@
99
{% endfor %}
1010
}, payload{% if method.type == 'location' %}, 'arraybuffer'{% endif %});
1111

12-
{% if method.type == 'location' %}
12+
{%~ if method.type == 'location' %}
1313
if (overrideForCli) {
1414
response = Buffer.from(response);
1515
}
1616

1717
fs.writeFileSync(destination, response);
18-
19-
{% endif %}
18+
{%~ endif %}
2019
if (parseOutput) {
2120
parse(response)
2221
success()

0 commit comments

Comments
 (0)