Do not print no packages warning when opening help on client
This commit is contained in:
parent
ee4de6a871
commit
8aa8768dcc
@ -146,7 +146,11 @@ async function outdated(cacheTimeout = TIME_TO_LIVE) {
|
|||||||
|
|
||||||
// Check if the configuration file exists
|
// Check if the configuration file exists
|
||||||
if (!fs.existsSync(packagesConfig)) {
|
if (!fs.existsSync(packagesConfig)) {
|
||||||
log.warn("There are no packages installed.");
|
// CLI calls outdated with zero TTL, so we can print the warning there
|
||||||
|
if (!cacheTimeout) {
|
||||||
|
log.warn("There are no packages installed.");
|
||||||
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user