aboutsummaryrefslogtreecommitdiffstats
path: root/api/http
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2022-12-27 19:39:09 +0100
committerMichael Muré <batolettre@gmail.com>2022-12-27 19:39:09 +0100
commitb27958758fe59f3c984243f4ad3cb8bcb4f43e86 (patch)
treed04c5e9b3baf91a14c32aa742938ada718f07914 /api/http
parent8cea6c7515e42cb8821a03c9bfebb0a8f63a01be (diff)
downloadgit-bug-b27958758fe59f3c984243f4ad3cb8bcb4f43e86.tar.gz
cache: simplify cache building events handling
Diffstat (limited to 'api/http')
-rw-r--r--api/http/git_file_handlers_test.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/api/http/git_file_handlers_test.go b/api/http/git_file_handlers_test.go
index 7be4aff6..8319da32 100644
--- a/api/http/git_file_handlers_test.go
+++ b/api/http/git_file_handlers_test.go
@@ -22,8 +22,7 @@ func TestGitFileHandlers(t *testing.T) {
repo := repository.CreateGoGitTestRepo(t, false)
mrc := cache.NewMultiRepoCache()
- repoCache, events, err := mrc.RegisterDefaultRepository(repo)
- require.NoError(t, err)
+ repoCache, events := mrc.RegisterDefaultRepository(repo)
for event := range events {
require.NoError(t, event.Err)
}