Skip to content

Commit

Permalink
fix golangci-lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
shijl0925 authored Sep 6, 2024
1 parent f3031b8 commit 74d189d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions changes.go
Original file line number Diff line number Diff line change
Expand Up @@ -664,9 +664,7 @@ func (s *ChangeService) Get(ctx context.Context, changeID string, AdditionalFiel
change := Change{Raw: new(ChangeInfo), gerrit: s.gerrit, Base: changeID}

opt := new(ChangeOptions)
for _, field := range AdditionalFields {
opt.AdditionalFields = append(opt.AdditionalFields, field)
}
opt.AdditionalFields = append(opt.AdditionalFields, AdditionalFields...)

resp, err := change.Poll(ctx, opt)
if err != nil {
Expand Down Expand Up @@ -1133,4 +1131,4 @@ func (c *Change) CheckSubmitRequirements(ctx context.Context, input *SubmitRequi
return nil, resp, err
}
return v, resp, nil
}
}

0 comments on commit 74d189d

Please sign in to comment.