From 12b5f797ad7a52fe96a78ee5cc1d60153ba64b4c Mon Sep 17 00:00:00 2001 From: Jeff Dickey <216188+jdxcode@users.noreply.github.com> Date: Wed, 25 Apr 2018 12:39:35 -0700 Subject: [PATCH] fix: remove version check --- src/hooks/init/check_update.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/hooks/init/check_update.ts b/src/hooks/init/check_update.ts index c9a9ef58..c0242f0f 100644 --- a/src/hooks/init/check_update.ts +++ b/src/hooks/init/check_update.ts @@ -32,9 +32,7 @@ const hook: Hook<'init'> = async function ({config}) { const timeoutInDays = cfg.timeoutInDays || 60 const {mtime} = await fs.stat(file) const staleAt = new Date(mtime.valueOf() + 1000 * 60 * 60 * 24 * timeoutInDays) - if (staleAt < new Date()) return true - const versions = await fs.readJSON(file) - return !versions.current || versions.current !== config.version + return staleAt < new Date() } catch (err) { debug(err) return true