Add empty last line to the contributors file.

This commit is contained in:
Ben Briggs 2016-06-23 18:26:49 +01:00 committed by Jeroen Engels
parent 349776924c
commit 2e7e890837

View file

@ -8,13 +8,13 @@ function readConfig(configPath) {
}
function writeConfig(configPath, content, cb) {
return fs.writeFile(configPath, JSON.stringify(content, null, 2), cb);
return fs.writeFile(configPath, JSON.stringify(content, null, 2) + '\n', cb);
}
function writeContributors(configPath, contributors, cb) {
var config = readConfig(configPath);
var content = _.assign(config, {contributors: contributors});
return fs.writeFile(configPath, JSON.stringify(content, null, 2), cb);
return writeConfig(configPath, content, cb);
}
module.exports = {