Remove log spam if latest version installed
Installed a recent version of this package and noticed my app kept saying 'has latest' on boot. Also change 'needs latest' to mention what's actually needed.
This commit is contained in:
parent
b47aee09f4
commit
ed1e5579c9
|
@ -7,7 +7,7 @@ var fs = require('fs')
|
|||
;
|
||||
|
||||
if (!fs.existsSync(latestFile)) {
|
||||
console.log('needs latest', latestFile);
|
||||
console.log('Needs latest SSL Root Certificate Authority data', latestFile);
|
||||
module.exports = require('./ssl-root-cas');
|
||||
generate(latestFile).then(function () {
|
||||
console.info('\n');
|
||||
|
@ -25,6 +25,5 @@ if (!fs.existsSync(latestFile)) {
|
|||
console.warn('');
|
||||
});
|
||||
} else {
|
||||
console.log('has latest');
|
||||
module.exports = require('./ssl-root-cas-latest');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue