diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-01-12 13:15:35 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-12 13:15:35 -0500 |
commit | db5e7ec4c42adf8ff97d9b19116ab6dbcbb616cd (patch) | |
tree | a1afbf91732f4b20b2cbacb460a3b7b60d6b6919 /libpod/image/prune.go | |
parent | 0ccc88813e3e3a385ecdefbe971c1664193cd682 (diff) | |
parent | 8452b768ec96e84cd09766bddb65a34835844d6d (diff) | |
download | podman-db5e7ec4c42adf8ff97d9b19116ab6dbcbb616cd.tar.gz podman-db5e7ec4c42adf8ff97d9b19116ab6dbcbb616cd.tar.bz2 podman-db5e7ec4c42adf8ff97d9b19116ab6dbcbb616cd.zip |
Merge pull request #8947 from Luap99/cleanup-code
Fix problems reported by staticcheck
Diffstat (limited to 'libpod/image/prune.go')
-rw-r--r-- | libpod/image/prune.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/image/prune.go b/libpod/image/prune.go index 3c06a89c2..587c99333 100644 --- a/libpod/image/prune.go +++ b/libpod/image/prune.go @@ -29,7 +29,7 @@ func generatePruneFilterFuncs(filter, filterValue string) (ImageFilter, error) { return false } for labelKey, labelValue := range labels { - if labelKey == filterKey && ("" == filterValue || labelValue == filterValue) { + if labelKey == filterKey && (filterValue == "" || labelValue == filterValue) { return true } } |