mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-21 09:34:40 +00:00
simplify test code using the if with a short statement
This commit is contained in:
parent
69360e9b5e
commit
476b415873
@ -349,8 +349,7 @@ func TestRepairServiceIP(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
err := r.runOnce()
|
||||
if err != nil {
|
||||
if err := r.runOnce(); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user