Makes repo existance check more sensitive.
License: MIT Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
Stephen Whitmore committed
Mar 24, 2016 at 11:34 UTC
fa00635078d9dbaeabf82e34b8bb46623e4b9abd
1 file changed
+1
-9
repo/fsrepo/fsrepo.go
+1
-9
@@ -580,13 +580,5 @@ func IsInitialized(path string) bool {
580
// isInitializedUnsynced reports whether the repo is initialized. Caller must
581
// hold the packageLock.
582
func isInitializedUnsynced(repoPath string) bool {
583
- if !configIsInitialized(repoPath) {
584
- return false
585
- }
586
-
587
- if !util.FileExists(filepath.Join(repoPath, leveldbDirectory)) {
588
- return false
589
- }
590
-
591
- return true
583
+ return configIsInitialized(repoPath)
584
}