aboutsummaryrefslogtreecommitdiffstats
path: root/repository
diff options
context:
space:
mode:
authorSteve Moyer <smoyer1@selesy.com>2022-05-25 07:59:56 -0400
committerSteve Moyer <smoyer1@selesy.com>2022-05-25 07:59:56 -0400
commite29f58bf853d0cd4825cb590ba973a9d9ab7ea36 (patch)
tree3cccd3b0298860b26058558c04bd8a1aa68f9b9b /repository
parentb42fae382af0a43b0d51fb312abd4ff55df43877 (diff)
downloadgit-bug-e29f58bf853d0cd4825cb590ba973a9d9ab7ea36.tar.gz
chore: clean-up commented code
Diffstat (limited to 'repository')
-rw-r--r--repository/gogit.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/repository/gogit.go b/repository/gogit.go
index af1b9fa4..e876629a 100644
--- a/repository/gogit.go
+++ b/repository/gogit.go
@@ -320,7 +320,6 @@ func (repo *GoGitRepo) GetBleveIndex(name string) (bleve.Index, error) {
return index, nil
}
- // path := filepath.Join(repo.path, "git-bug", "indexes", name)
path := filepath.Join(repo.localStorage.Root(), indexPath, name)
index, err := bleve.Open(path)
@@ -352,7 +351,6 @@ func (repo *GoGitRepo) ClearBleveIndex(name string) error {
repo.indexesMutex.Lock()
defer repo.indexesMutex.Unlock()
- // path := filepath.Join(repo.path, "git-bug", "indexes", name)
path := filepath.Join(repo.localStorage.Root(), indexPath, name)
err := os.RemoveAll(path)
@@ -794,7 +792,6 @@ func (repo *GoGitRepo) AllClocks() (map[string]lamport.Clock, error) {
result := make(map[string]lamport.Clock)
- // files, err := ioutil.ReadDir(filepath.Join(repo.path, "git-bug", clockPath))
files, err := ioutil.ReadDir(filepath.Join(repo.localStorage.Root(), clockPath))
if os.IsNotExist(err) {
return nil, nil