Skip to content

Commit

Permalink
Remove unused parameter for a function
Browse files Browse the repository at this point in the history
  • Loading branch information
harryzcy committed Apr 26, 2024
1 parent c93eefb commit ffee405
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions services/mirror/mirror_pull.go
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ func SyncPullMirror(ctx context.Context, repoID int64) bool {

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

func checkAndUpdateEmptyRepository(ctx context.Context, m *repo_model.Mirror, gitRepo *git.Repository, results []*mirrorSyncResult) bool {
func checkAndUpdateEmptyRepository(ctx context.Context, m *repo_model.Mirror, results []*mirrorSyncResult) bool {
if !m.Repo.IsEmpty {
return true
}
Expand Down

0 comments on commit ffee405

Please sign in to comment.