diff options
Diffstat (limited to 'internal/index')
-rw-r--r-- | internal/index/indexer.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/index/indexer.go b/internal/index/indexer.go index 7141762..3665785 100644 --- a/internal/index/indexer.go +++ b/internal/index/indexer.go @@ -182,22 +182,22 @@ func OpenOrCreate(dataRoot string, force bool) (*ReadIndex, *WriteIndex, bool, e if force { err = deleteIndex(dataRoot) if err != nil { - return nil, nil, exists, err + return nil, nil, false, err } } idx, err = createIndex(indexPath) if err != nil { - return nil, nil, exists, err + return nil, nil, false, err } meta, err = createMeta(metaPath) if err != nil { - return nil, nil, exists, err + return nil, nil, false, err } err = meta.Save() if err != nil { - return nil, nil, exists, err + return nil, nil, false, err } } else { idx, err = bleve.Open(indexPath) |