From 57aece3929c63bb2beea54cd0fa07cb3afaf4c66 Mon Sep 17 00:00:00 2001 From: James Munson Date: Fri, 16 Aug 2024 13:40:19 -0600 Subject: [PATCH] fix(lint): avoid some lint errors about deprecated fields Signed-off-by: James Munson --- controller/instance_manager_controller.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/controller/instance_manager_controller.go b/controller/instance_manager_controller.go index c62aed892a..2683dead64 100644 --- a/controller/instance_manager_controller.go +++ b/controller/instance_manager_controller.go @@ -940,14 +940,14 @@ func formatInstanceMessage(im *longhorn.InstanceManager) string { } } - if len(im.Status.Instances) > 0 { + if len(im.Status.Instances) > 0 { // nolint: staticcheck if ieFormated { - msg = fmt.Sprintf("%v Instances count %v", msg, len(im.Status.Instances)) + msg = fmt.Sprintf("%v Instances count %v", msg, len(im.Status.Instances)) // nolint: staticcheck } else { - msg = fmt.Sprintf("Instances count %v", len(im.Status.Instances)) + msg = fmt.Sprintf("Instances count %v", len(im.Status.Instances)) // nolint: staticcheck } i := 0 - for k := range im.Status.Instances { + for k := range im.Status.Instances { // nolint: staticcheck msg = msg + " " + k if i++; i >= ITERATE_NAME_LIMIT { break