Skip to content

Commit

Permalink
simplify test code using the if with a short statement
Browse files Browse the repository at this point in the history
  • Loading branch information
aojea committed Jun 27, 2024
1 parent 69360e9 commit 476b415
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -349,8 +349,7 @@ func TestRepairServiceIP(t *testing.T) {
}
}

err := r.runOnce()
if err != nil {
if err := r.runOnce(); err != nil {
t.Fatal(err)
}

Expand Down

0 comments on commit 476b415

Please sign in to comment.