From 476b4158730338b3e428dfc84067b715828873ef Mon Sep 17 00:00:00 2001 From: Antonio Ojea Date: Thu, 27 Jun 2024 11:44:27 +0000 Subject: [PATCH] simplify test code using the if with a short statement --- .../core/service/ipallocator/controller/repairip_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/registry/core/service/ipallocator/controller/repairip_test.go b/pkg/registry/core/service/ipallocator/controller/repairip_test.go index 45397bc3253..37dc56b1703 100644 --- a/pkg/registry/core/service/ipallocator/controller/repairip_test.go +++ b/pkg/registry/core/service/ipallocator/controller/repairip_test.go @@ -349,8 +349,7 @@ func TestRepairServiceIP(t *testing.T) { } } - err := r.runOnce() - if err != nil { + if err := r.runOnce(); err != nil { t.Fatal(err) }