mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-01 06:17:56 +08:00
Makes repo existance check more sensitive.
License: MIT Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
This commit is contained in:
parent
8acd87d799
commit
fa00635078
@ -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)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user