Skip to content

Commit

Permalink
Update dependency architect to v5.5.1 (#440)
Browse files Browse the repository at this point in the history
* Update dependency architect to v5.5.1

* fix govet errors

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Theo Brigitte <[email protected]>
  • Loading branch information
renovate[bot] and TheoBrigitte authored Aug 23, 2024
1 parent a4327c9 commit 6d5d29d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: 2.1

orbs:
architect: giantswarm/architect@5.4.0
architect: giantswarm/architect@5.5.1

workflows:
build:
Expand Down
8 changes: 4 additions & 4 deletions pkg/alertmanager/alertmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@ func (am *AlertManager) CreateSilence(s *Silence) error {
}

if resp.StatusCode != 200 {
return microerror.Maskf(executionFailedError, fmt.Sprintf("failed to create/update silence %#q, expected code 200, got %d", s.Comment, resp.StatusCode))
return microerror.Maskf(executionFailedError, "failed to create/update silence %#q, expected code 200, got %d", s.Comment, resp.StatusCode)
}

return nil
}

func (am *AlertManager) UpdateSilence(s *Silence) error {
if s.ID == "" {
return microerror.Maskf(executionFailedError, fmt.Sprintf("failed to update silence %#q, missing ID", s.Comment))
return microerror.Maskf(executionFailedError, "failed to update silence %#q, missing ID", s.Comment)
}
return am.CreateSilence(s)
}
Expand All @@ -89,7 +89,7 @@ func (am *AlertManager) DeleteSilenceByComment(comment string) error {
}
}

return microerror.Maskf(notFoundError, fmt.Sprintf("failed to delete silence by comment %#q", comment))
return microerror.Maskf(notFoundError, "failed to delete silence by comment %#q", comment)
}

func (am *AlertManager) ListSilences() ([]Silence, error) {
Expand Down Expand Up @@ -147,7 +147,7 @@ func (am *AlertManager) DeleteSilenceByID(id string) error {
}

if resp.StatusCode != 200 {
return microerror.Maskf(executionFailedError, fmt.Sprintf("failed to delete silence %#q, expected code 200, got %d", id, resp.StatusCode))
return microerror.Maskf(executionFailedError, "failed to delete silence %#q, expected code 200, got %d", id, resp.StatusCode)
}

return nil
Expand Down

0 comments on commit 6d5d29d

Please sign in to comment.