Skip to content

Commit

Permalink
Makes repo existance check more sensitive.
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
  • Loading branch information
hackergrrl committed Mar 24, 2016
1 parent 8f6d093 commit 3645f24
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions repo/fsrepo/fsrepo.go
Original file line number Diff line number Diff line change
Expand Up @@ -593,13 +593,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)
}

0 comments on commit 3645f24

Please sign in to comment.