Fixed deprecated async function call
This commit is contained in:
parent
8e78eb76f8
commit
d0d9fd8837
1 changed files with 5 additions and 1 deletions
6
index.js
6
index.js
|
@ -71,7 +71,11 @@ if (options.enable !== false) {
|
||||||
var githubEmojis = _.assign(fallbackEmojis, latestEmojis)
|
var githubEmojis = _.assign(fallbackEmojis, latestEmojis)
|
||||||
emojis = _.assign(githubEmojis, localEmojis)
|
emojis = _.assign(githubEmojis, localEmojis)
|
||||||
// update local backup
|
// 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) }
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue