Various code-cleanup

remove unnescessary import aliases, brackets, and so on.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2018-05-19 13:38:54 +02:00
parent 0846a02d54
commit f23c00d870
112 changed files with 168 additions and 182 deletions

View File

@@ -119,7 +119,7 @@ type elementListOptions struct {
}
func existingElements(c *check.C, opts elementListOptions) []string {
args := []string{}
var args []string
switch opts.element {
case "container":
args = append(args, "ps", "-a")
@@ -136,7 +136,7 @@ func existingElements(c *check.C, opts elementListOptions) []string {
args = append(args, "--format", opts.format)
}
out, _ := dockerCmd(c, args...)
lines := []string{}
var lines []string
for _, l := range strings.Split(out, "\n") {
if l != "" {
lines = append(lines, l)