Commit fa006350 authored by Stephen Whitmore's avatar Stephen Whitmore

Makes repo existance check more sensitive.

License: MIT
Signed-off-by: default avatarStephen Whitmore <noffle@ipfs.io>
parent 8acd87d7
......@@ -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)
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment