about summary refs log tree commit diff stats
path: root/internal/importer/main.go
diff options
context:
space:
mode:
authorAlan Pearce2024-05-17 16:54:54 +0200
committerAlan Pearce2024-05-17 16:54:54 +0200
commit041ebd2291db60e73d7fc213cd8a74d33b7f089b (patch)
tree2cd2403c450d58f9e07dc7f22d220a9415aa39a0 /internal/importer/main.go
parent64881323e89d6d9b96865a5fa6f2150b826683db (diff)
downloadsearchix-041ebd2291db60e73d7fc213cd8a74d33b7f089b.tar.lz
searchix-041ebd2291db60e73d7fc213cd8a74d33b7f089b.tar.zst
searchix-041ebd2291db60e73d7fc213cd8a74d33b7f089b.zip
fix: nil pointer when updating all sources
Diffstat (limited to 'internal/importer/main.go')
-rw-r--r--internal/importer/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/importer/main.go b/internal/importer/main.go
index 747d813..5343e81 100644
--- a/internal/importer/main.go
+++ b/internal/importer/main.go
@@ -33,7 +33,7 @@ func Start(
 	forceUpdate = forceUpdate || (onlyUpdateSources != nil && len(*onlyUpdateSources) > 0)
 
 	for name, source := range cfg.Importer.Sources {
-		if len(*onlyUpdateSources) > 0 {
+		if onlyUpdateSources != nil && len(*onlyUpdateSources) > 0 {
 			if !slices.Contains(*onlyUpdateSources, name) {
 				continue
 			}