diff options
author | Paul Holzinger <paul.holzinger@web.de> | 2021-02-11 22:28:35 +0100 |
---|---|---|
committer | Matthew Heon <mheon@redhat.com> | 2021-02-18 11:09:50 -0500 |
commit | 6470f970154c4d21e591fe18d59d1f471b51b5d7 (patch) | |
tree | 5927d60cbbe96af91ac8a0ececcc06e01496d2ad /libpod/healthcheck.go | |
parent | 3bddeebf930efb872b99966df5553e0baf81834a (diff) | |
download | podman-6470f970154c4d21e591fe18d59d1f471b51b5d7.tar.gz podman-6470f970154c4d21e591fe18d59d1f471b51b5d7.tar.bz2 podman-6470f970154c4d21e591fe18d59d1f471b51b5d7.zip |
Enable golint linter
Use the golint linter and fix the reported problems.
[NO TESTS NEEDED]
Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
Diffstat (limited to 'libpod/healthcheck.go')
-rw-r--r-- | libpod/healthcheck.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/healthcheck.go b/libpod/healthcheck.go index f77075893..6c5becd5b 100644 --- a/libpod/healthcheck.go +++ b/libpod/healthcheck.go @@ -190,7 +190,7 @@ func (c *Container) updateHealthCheckLog(hcl define.HealthCheckLog, inStartPerio } if !inStartPeriod { // increment failing streak - healthCheck.FailingStreak += 1 + healthCheck.FailingStreak++ // if failing streak > retries, then status to unhealthy if healthCheck.FailingStreak >= c.HealthCheckConfig().Retries { healthCheck.Status = define.HealthCheckUnhealthy |