Skip to content

Commit

Permalink
Skip package update checks if we are in devMode
Browse files Browse the repository at this point in the history
  • Loading branch information
confused-Techie committed Dec 15, 2024
1 parent ae3d51f commit c117f37
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/settings-view/lib/package-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,10 @@ module.exports = class PackageManager {
if (clearCache) {
this.clearOutdatedCache();
// Short circuit if we have cached data.
} else if (this.apmCache.loadOutdated.value && (this.apmCache.loadOutdated.expiry > Date.now())) {
} else if (
(this.apmCache.loadOutdated.value && (this.apmCache.loadOutdated.expiry > Date.now())) ||
atom.devMode
) {
return callback(null, this.apmCache.loadOutdated.value);
}

Expand Down

0 comments on commit c117f37

Please sign in to comment.