Skip to content

Commit 2c105ed

Browse files
authored
Make the linter happy (#9375)
1 parent a141267 commit 2c105ed

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pkg/component/runtime/service.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -626,9 +626,10 @@ func (s *serviceRuntime) sendObserved() {
626626
func (s *serviceRuntime) compState(state client.UnitState, missedCheckins int) {
627627
name := s.name()
628628
msg := stateUnknownMessage
629-
if state == client.UnitStateHealthy {
629+
switch state {
630+
case client.UnitStateHealthy:
630631
msg = fmt.Sprintf("Healthy: communicating with %s service", name)
631-
} else if state == client.UnitStateDegraded {
632+
case client.UnitStateDegraded:
632633
if missedCheckins == 1 {
633634
msg = fmt.Sprintf("Degraded: %s service missed 1 check-in", name)
634635
} else {

0 commit comments

Comments
 (0)