Skip to content

Commit ffee405

Browse files
committed
Remove unused parameter for a function
1 parent c93eefb commit ffee405

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

services/mirror/mirror_pull.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ func SyncPullMirror(ctx context.Context, repoID int64) bool {
466466

467467
log.Trace("SyncMirrors [repo: %-v]: %d branches updated", m.Repo, len(results))
468468
if len(results) > 0 {
469-
if ok := checkAndUpdateEmptyRepository(ctx, m, gitRepo, results); !ok {
469+
if ok := checkAndUpdateEmptyRepository(ctx, m, results); !ok {
470470
log.Error("SyncMirrors [repo: %-v]: checkAndUpdateEmptyRepository: %v", m.Repo, err)
471471
return false
472472
}
@@ -564,7 +564,7 @@ func SyncPullMirror(ctx context.Context, repoID int64) bool {
564564
return true
565565
}
566566

567-
func checkAndUpdateEmptyRepository(ctx context.Context, m *repo_model.Mirror, gitRepo *git.Repository, results []*mirrorSyncResult) bool {
567+
func checkAndUpdateEmptyRepository(ctx context.Context, m *repo_model.Mirror, results []*mirrorSyncResult) bool {
568568
if !m.Repo.IsEmpty {
569569
return true
570570
}

0 commit comments

Comments
 (0)