Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
`Feedr === reading [${feed.url}] on [${path}], it doesn't exist`
)
// Exit
readFileComplete()
return
}
// Log
me.log(
'debug',
`Feedr === reading [${feed.url}] on [${path}], it exists, now reading`
)
// It does exist, so let's continue to read the cached fie
safefs.readFile(path, null, function(err, rawData) {
// Check
if (err) {
// Log
me.log(
'debug',
`Feedr === reading [${feed.url}] on [${path}], it exists, read failed`,
err.stack
)
// Exit
readFileComplete(err)
return
}
// Log
me.log(
tasks.addTask(message, complete => {
this.log('info', message)
readFile(filePath, (err, data) => {
if (err) return complete(err)
this.filenamesForReadmeFiles[key] = file
this.dataForReadmeFiles[key] = data.toString()
complete(err)
})
})
}