mirror of
https://github.com/thelounge/thelounge
synced 2025-02-18 06:08:26 +00:00
Merge pull request #3458 from thelounge/xpaw/remove-warn
Do not print "no packages" warning when opening help on client
This commit is contained in:
commit
28949fb5e2
1 changed files with 5 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue