Skip to content

Commit

Permalink
Minor Fixes (#2028)
Browse files Browse the repository at this point in the history
  • Loading branch information
johannesHarness authored and Harness committed May 9, 2024
1 parent b98e0f0 commit f6614fe
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
4 changes: 0 additions & 4 deletions app/api/controller/pullreq/comment_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -417,10 +417,6 @@ func appendMetadataUpdateForSuggestions(
comment string,
) []types.PullReqActivityMetadataUpdate {
suggestions := parseSuggestions(comment)
if len(suggestions) == 0 {
return updates
}

return append(
updates,
types.WithPullReqActivitySuggestionsMetadataUpdate(
Expand Down
1 change: 1 addition & 0 deletions git/api/archive.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ func (p *ArchiveParams) Validate() error {
if p.Treeish == "" {
return errors.InvalidArgument("treeish field cannot be empty")
}
//nolint:revive
if err := p.Format.Validate(); err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion git/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ func (p *ArchiveParams) Validate() error {
if err := p.ReadParams.Validate(); err != nil {
return err
}

//nolint:revive
if err := p.ArchiveParams.Validate(); err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion types/pullreq_activity.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ type PullReqActivity struct {

Text string `json:"text"`
PayloadRaw json.RawMessage `json:"payload"`
Metadata *PullReqActivityMetadata `json:"metadata"`
Metadata *PullReqActivityMetadata `json:"metadata,omitempty"`

ResolvedBy *int64 `json:"-"` // not returned, because the resolver info is in the Resolver field
Resolved *int64 `json:"resolved,omitempty"`
Expand Down

0 comments on commit f6614fe

Please sign in to comment.