From 2136aea07da0a684a33e9a986879bbf5c8fa2f12 Mon Sep 17 00:00:00 2001 From: marwan-at-work Date: Mon, 8 May 2017 19:07:00 -0400 Subject: [PATCH] [system/prune] make pruneFuncs an array Signed-off-by: marwan-at-work --- cli/command/system/prune.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/command/system/prune.go b/cli/command/system/prune.go index dcc5d722175a..58b522fd6d89 100644 --- a/cli/command/system/prune.go +++ b/cli/command/system/prune.go @@ -66,7 +66,7 @@ func runPrune(dockerCli command.Cli, options pruneOptions) error { var spaceReclaimed uint64 - for _, pruneFn := range []func(dockerCli command.Cli, filter opts.FilterOpt) (uint64, string, error){ + for _, pruneFn := range [3]func(dockerCli command.Cli, filter opts.FilterOpt) (uint64, string, error){ prune.RunContainerPrune, prune.RunVolumePrune, prune.RunNetworkPrune,