mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-21 18:37:45 +08:00
Merge pull request #2497 from noffle/init_check
Makes repo existance check more sensitive.
This commit is contained in:
commit
ca50f0d8bf
@ -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