File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -220,7 +220,7 @@ export class ElectronVersions extends BaseVersions {
220
220
const now = Date . now ( ) ;
221
221
try {
222
222
const st = await fs . stat ( versionsCache ) ;
223
- if ( st . mtimeMs + ElectronVersions . freshnessMs >= now )
223
+ if ( now <= st . mtimeMs + ElectronVersions . freshnessMs )
224
224
versions = ( await fs . readJson ( versionsCache ) ) as unknown ;
225
225
} catch ( err ) {
226
226
// cache file missing
@@ -244,7 +244,7 @@ export class ElectronVersions extends BaseVersions {
244
244
// if it's still fresh, do nothing
245
245
const { mtimeMs, versionsCache } = this ;
246
246
const now = Date . now ( ) ;
247
- if ( mtimeMs + ElectronVersions . freshnessMs >= now ) return ;
247
+ if ( now <= mtimeMs + ElectronVersions . freshnessMs ) return ;
248
248
249
249
// update the cache
250
250
try {
You can’t perform that action at this time.
0 commit comments