api: fix bugs introduced in code cleanup

This commit is contained in:
Thomas Hobson 2021-03-06 00:31:51 +13:00
parent 4732681864
commit 49c761311b
No known key found for this signature in database
GPG key ID: 9F1FD9D87950DB6F
2 changed files with 7 additions and 7 deletions

View file

@ -129,11 +129,11 @@ function make_default_config(){
content.concat(option.desc.split('\n').map(x=>`# ${x}`));
if(option.options)
content.append('# Options: ' + option.options.join(', '));
content.push('# Options: ' + option.options.join(', '));
content.append(`${option.key}: ${option.default}`);
content.append(''); // New line between
content.push(`${option.key}: ${option.default}`);
content.push(''); // New line between
});
return content.join('\n');