Skip to content

Commit

Permalink
Delete unreachable code caused by t.Fatalf (prometheus#3042)
Browse files Browse the repository at this point in the history
Signed-off-by: Cosrider <[email protected]>

Signed-off-by: Cosrider <[email protected]>
  • Loading branch information
Cosrider authored Sep 9, 2022
1 parent 51c4d52 commit 228b795
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions test/with_api_v1/acceptance.go
Original file line number Diff line number Diff line change
Expand Up @@ -418,11 +418,9 @@ func (am *Alertmanager) DelSilence(at float64, sil *TestSilence) {
func (am *Alertmanager) UpdateConfig(conf string) {
if _, err := am.confFile.WriteString(conf); err != nil {
am.t.Fatal(err)
return
}
if err := am.confFile.Sync(); err != nil {
am.t.Fatal(err)
return
}
}

Expand Down
2 changes: 0 additions & 2 deletions test/with_api_v2/acceptance.go
Original file line number Diff line number Diff line change
Expand Up @@ -507,11 +507,9 @@ func (amc *AlertmanagerCluster) UpdateConfig(conf string) {
func (am *Alertmanager) UpdateConfig(conf string) {
if _, err := am.confFile.WriteString(conf); err != nil {
am.t.Fatal(err)
return
}
if err := am.confFile.Sync(); err != nil {
am.t.Fatal(err)
return
}
}

Expand Down

0 comments on commit 228b795

Please sign in to comment.