diff options
author | Alan Pearce | 2024-05-17 16:54:54 +0200 |
---|---|---|
committer | Alan Pearce | 2024-05-17 16:54:54 +0200 |
commit | 041ebd2291db60e73d7fc213cd8a74d33b7f089b (patch) | |
tree | 2cd2403c450d58f9e07dc7f22d220a9415aa39a0 /internal | |
parent | 64881323e89d6d9b96865a5fa6f2150b826683db (diff) | |
download | searchix-041ebd2291db60e73d7fc213cd8a74d33b7f089b.tar.lz searchix-041ebd2291db60e73d7fc213cd8a74d33b7f089b.tar.zst searchix-041ebd2291db60e73d7fc213cd8a74d33b7f089b.zip |
fix: nil pointer when updating all sources
Diffstat (limited to 'internal')
-rw-r--r-- | internal/importer/main.go | 2 |
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 } |