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) }