Skip to content

Commit a707872

Browse files
Apply suggestion from @ycombinator
Co-authored-by: Shaunak Kashyap <[email protected]>
1 parent 726fb96 commit a707872

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

internal/pkg/agent/application/monitoring/readiness.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ func readinessHandler(coord CoordinatorState) func(http.ResponseWriter, *http.Re
2020

2121
if coord != nil {
2222
// to be ready the coordinator must be active
23-
isUp := coord.IsActive(time.Second * 10)
24-
if !isUp {
23+
if !coord.IsActive(time.Second * 10) {
2524
w.WriteHeader(http.StatusServiceUnavailable)
2625
return nil
2726
}

0 commit comments

Comments
 (0)