From 041ebd2291db60e73d7fc213cd8a74d33b7f089b Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Fri, 17 May 2024 16:54:54 +0200 Subject: fix: nil pointer when updating all sources --- internal/importer/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } -- cgit 1.4.1