all repos — searchix @ 43fe431c3aff36d52a630ca670f9fc4ee161962f

Search engine for NixOS, nix-darwin, home-manager and NUR users

fix: don't panic when re-indexing if fetcher did not update
Alan Pearce alan@alanpearce.eu
Fri, 17 May 2024 15:47:53 +0200
commit

43fe431c3aff36d52a630ca670f9fc4ee161962f

parent

02589f637da77501030f0f37b3aafe2ff4c2c304

2 files changed, 2 insertions(+), 2 deletions(-)

jump to
M internal/fetcher/download.gointernal/fetcher/download.go
@@ -62,7 +62,7 @@ return 		}
 		// don't bother to issue requests for the later files
 		if !updated {
-			return
+			break
 		}
 	}
 
M internal/fetcher/nixpkgs-channel.gointernal/fetcher/nixpkgs-channel.go
@@ -60,7 +60,7 @@ return 		}
 		// don't bother to issue requests for the later files
 		if !updated {
-			return
+			break
 		}
 	}