about summary refs log tree commit diff stats
path: root/internal/fetcher/nixpkgs-channel.go
diff options
context:
space:
mode:
authorAlan Pearce2024-05-17 15:47:53 +0200
committerAlan Pearce2024-05-17 15:47:53 +0200
commit43fe431c3aff36d52a630ca670f9fc4ee161962f (patch)
treec1fe104e64059942fb622f29f6ce25aa98f0d954 /internal/fetcher/nixpkgs-channel.go
parent02589f637da77501030f0f37b3aafe2ff4c2c304 (diff)
downloadsearchix-43fe431c3aff36d52a630ca670f9fc4ee161962f.tar.lz
searchix-43fe431c3aff36d52a630ca670f9fc4ee161962f.tar.zst
searchix-43fe431c3aff36d52a630ca670f9fc4ee161962f.zip
fix: don't panic when re-indexing if fetcher did not update
Diffstat (limited to 'internal/fetcher/nixpkgs-channel.go')
-rw-r--r--internal/fetcher/nixpkgs-channel.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/fetcher/nixpkgs-channel.go b/internal/fetcher/nixpkgs-channel.go
index aa1a09d..c135641 100644
--- a/internal/fetcher/nixpkgs-channel.go
+++ b/internal/fetcher/nixpkgs-channel.go
@@ -60,7 +60,7 @@ func (i *NixpkgsChannelFetcher) FetchIfNeeded(
 		}
 		// don't bother to issue requests for the later files
 		if !updated {
-			return
+			break
 		}
 	}