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/container_internal.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/container_internal.go')
-rw-r--r-- | libpod/container_internal.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/container_internal.go b/libpod/container_internal.go index 7aaa002b2..e02cb201e 100644 --- a/libpod/container_internal.go +++ b/libpod/container_internal.go @@ -264,7 +264,7 @@ func (c *Container) handleRestartPolicy(ctx context.Context) (_ bool, retErr err c.newContainerEvent(events.Restart) // Increment restart count - c.state.RestartCount += 1 + c.state.RestartCount++ logrus.Debugf("Container %s now on retry %d", c.ID(), c.state.RestartCount) if err := c.save(); err != nil { return false, err |