mirror of
https://github.com/containers/podman.git
synced 2025-11-30 10:07:33 +08:00
enable gofumpt formatter
Based on our discussion gofumpt won the vote so use that one via golangci-lint. https://github.com/containers/podman/discussions/27291 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
@@ -30,9 +30,7 @@ import (
|
||||
type ExternalContainerFilter func(*entities.ListContainer) bool
|
||||
|
||||
func GetContainerLists(runtime *libpod.Runtime, options entities.ContainerListOptions) ([]entities.ListContainer, error) {
|
||||
var (
|
||||
pss = []entities.ListContainer{}
|
||||
)
|
||||
pss := []entities.ListContainer{}
|
||||
filterFuncs := make([]libpod.ContainerFilter, 0, len(options.Filters))
|
||||
filterExtFuncs := make([]entities.ExternalContainerFilter, 0, len(options.Filters))
|
||||
all := options.All || options.Last > 0
|
||||
@@ -122,9 +120,7 @@ func GetContainerLists(runtime *libpod.Runtime, options entities.ContainerListOp
|
||||
|
||||
// GetExternalContainerLists returns list of external containers for e.g. created by buildah
|
||||
func GetExternalContainerLists(runtime *libpod.Runtime, filterExtFuncs ...entities.ExternalContainerFilter) ([]entities.ListContainer, error) {
|
||||
var (
|
||||
pss = []*entities.ListContainer{}
|
||||
)
|
||||
pss := []*entities.ListContainer{}
|
||||
|
||||
externCons, err := runtime.StorageContainers()
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user