From fa00635078d9dbaeabf82e34b8bb46623e4b9abd Mon Sep 17 00:00:00 2001 From: Stephen Whitmore Date: Thu, 24 Mar 2016 11:34:30 -0700 Subject: [PATCH] Makes repo existance check more sensitive. License: MIT Signed-off-by: Stephen Whitmore --- repo/fsrepo/fsrepo.go | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/repo/fsrepo/fsrepo.go b/repo/fsrepo/fsrepo.go index 18580986d..2aaa9c130 100644 --- a/repo/fsrepo/fsrepo.go +++ b/repo/fsrepo/fsrepo.go @@ -580,13 +580,5 @@ func IsInitialized(path string) bool { // isInitializedUnsynced reports whether the repo is initialized. Caller must // hold the packageLock. func isInitializedUnsynced(repoPath string) bool { - if !configIsInitialized(repoPath) { - return false - } - - if !util.FileExists(filepath.Join(repoPath, leveldbDirectory)) { - return false - } - - return true + return configIsInitialized(repoPath) }