about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--internal/fetcher/download.go2
-rw-r--r--internal/fetcher/nixpkgs-channel.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/internal/fetcher/download.go b/internal/fetcher/download.go
index 6bce5a8..7657825 100644
--- a/internal/fetcher/download.go
+++ b/internal/fetcher/download.go
@@ -62,7 +62,7 @@ func (i *DownloadFetcher) FetchIfNeeded(
 		}
 		// don't bother to issue requests for the later files
 		if !updated {
-			return
+			break
 		}
 	}
 
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
 		}
 	}