diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-07-04 13:51:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-04 13:51:27 +0200 |
commit | 1fe2965e4f672674f7b66648e9973a0ed5434bb4 (patch) | |
tree | 8d5385f5939ff3c139dc2e15b112ce4ad9797b1a /libpod | |
parent | 1de81bc71704f4a317756c866695740fb6f65a9b (diff) | |
parent | fec1de6ef4b3f769ba0906cda948a3215709cd37 (diff) | |
download | podman-1fe2965e4f672674f7b66648e9973a0ed5434bb4.tar.gz podman-1fe2965e4f672674f7b66648e9973a0ed5434bb4.tar.bz2 podman-1fe2965e4f672674f7b66648e9973a0ed5434bb4.zip |
Merge pull request #3495 from baude/golandcodecleanup
trivial cleanups from golang
Diffstat (limited to 'libpod')
-rw-r--r-- | libpod/container_internal.go | 2 | ||||
-rw-r--r-- | libpod/image/pull.go | 4 | ||||
-rw-r--r-- | libpod/lock/shm/shm_lock.go | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/libpod/container_internal.go b/libpod/container_internal.go index cb6c35049..4ed1209bb 100644 --- a/libpod/container_internal.go +++ b/libpod/container_internal.go @@ -610,7 +610,7 @@ func (c *Container) isStopped() (bool, error) { if err != nil { return true, err } - return (c.state.State != define.ContainerStateRunning && c.state.State != define.ContainerStatePaused), nil + return c.state.State != define.ContainerStateRunning && c.state.State != define.ContainerStatePaused, nil } // save container state to the database diff --git a/libpod/image/pull.go b/libpod/image/pull.go index 644a9ae86..e5765febc 100644 --- a/libpod/image/pull.go +++ b/libpod/image/pull.go @@ -19,8 +19,8 @@ import ( "github.com/containers/image/types" "github.com/containers/libpod/libpod/events" "github.com/containers/libpod/pkg/registries" - multierror "github.com/hashicorp/go-multierror" - opentracing "github.com/opentracing/opentracing-go" + "github.com/hashicorp/go-multierror" + "github.com/opentracing/opentracing-go" "github.com/pkg/errors" "github.com/sirupsen/logrus" ) diff --git a/libpod/lock/shm/shm_lock.go b/libpod/lock/shm/shm_lock.go index 37c8dea7d..322e92a8f 100644 --- a/libpod/lock/shm/shm_lock.go +++ b/libpod/lock/shm/shm_lock.go @@ -22,7 +22,7 @@ var ( // BitmapSize is the size of the bitmap used when managing SHM locks. // an SHM lock manager's max locks will be rounded up to a multiple of // this number. - BitmapSize uint32 = uint32(C.bitmap_size_c) + BitmapSize = uint32(C.bitmap_size_c) ) // SHMLocks is a struct enabling POSIX semaphore locking in a shared memory |