diff options
author | Alan Pearce | 2024-05-29 16:53:48 +0200 |
---|---|---|
committer | Alan Pearce | 2024-05-29 16:53:48 +0200 |
commit | 2c4a19ad6cb71065d31304370708c859b4f68f6d (patch) | |
tree | bf9a5561066fd62198c7efcd2c15bf69e14ce2f7 /searchix.go | |
parent | 10774c3b734d4b32f34a943e8a71a27b357b2ac5 (diff) | |
download | searchix-2c4a19ad6cb71065d31304370708c859b4f68f6d.tar.lz searchix-2c4a19ad6cb71065d31304370708c859b4f68f6d.tar.zst searchix-2c4a19ad6cb71065d31304370708c859b4f68f6d.zip |
fix: nil pointer exception when (re-)indexing
Diffstat (limited to 'searchix.go')
-rw-r--r-- | searchix.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searchix.go b/searchix.go index c10eb6a..f91fe48 100644 --- a/searchix.go +++ b/searchix.go @@ -64,7 +64,7 @@ func (s *Server) SetupIndex(update bool, replace bool) error { "update", update, ) - err = importer.Start(s.cfg, write, replace, nil) + err = importer.Start(s.cfg, write, replace || update, nil) if err != nil { return errors.Wrap(err, "Failed to build index") } |