Fixed deprecated async function call

This commit is contained in:
CRIMX 2017-09-30 12:27:45 +08:00
parent 8e78eb76f8
commit d0d9fd8837

View file

@ -71,7 +71,11 @@ if (options.enable !== false) {
var githubEmojis = _.assign(fallbackEmojis, latestEmojis)
emojis = _.assign(githubEmojis, localEmojis)
// update local backup
fs.writeFile(path.join(__dirname, 'emojis.json'), JSON.stringify(githubEmojis, null, '\t'))
fs.writeFile(
path.join(__dirname, 'emojis.json'),
JSON.stringify(githubEmojis, null, '\t'),
function (err) { console.log(err) }
)
}
}
})