simplify test code using the if with a short statement

This commit is contained in:
Antonio Ojea 2024-06-27 11:44:27 +00:00
parent 69360e9b5e
commit 476b415873

View File

@ -349,8 +349,7 @@ func TestRepairServiceIP(t *testing.T) {
} }
} }
err := r.runOnce() if err := r.runOnce(); err != nil {
if err != nil {
t.Fatal(err) t.Fatal(err)
} }