Makes repo existance check more sensitive.

License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
This commit is contained in:
Stephen Whitmore 2016-03-24 11:34:30 -07:00
parent 8acd87d799
commit fa00635078

View File

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