Skip to content

Commit

Permalink
chore(task): rm useless condition
Browse files Browse the repository at this point in the history
  • Loading branch information
a632079 committed Jul 2, 2020
1 parent afef85b commit 90ed3ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/task/updateSentencesTask.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ async function Task () {
cache.set('hitokoto:ab', targetDatabase)
winston.verbose('[sentencesUpdateTask] total sentences: ' + colors.cyan(sentenceTotal))
winston.verbose('[sentencesUpdateTask] having finished the update, spend ' + (Date.now() - startTick) + ' ms.')
if (process.send && targetDatabase) { // is in CronProcess
if (process.send) { // is in CronProcess
winston.verbose('[sentencesUpdateTask] notify master process to switch redis db to: ' + colors.yellow(targetDatabase))
process.send({
key: 'switchAB',
Expand Down

0 comments on commit 90ed3ff

Please sign in to comment.