[fmt] Format everything
Change-Id: I0e93fe1d4909267cdd941fa63a41651daa0af6e9
diff --git a/cmd/artifacts/main.go b/cmd/artifacts/main.go
index eda9bad..d9db1b0 100644
--- a/cmd/artifacts/main.go
+++ b/cmd/artifacts/main.go
@@ -16,8 +16,8 @@
import (
"context"
"flag"
- "os"
"github.com/google/subcommands"
+ "os"
)
func main() {
diff --git a/cmd/botanist/zedboot.go b/cmd/botanist/zedboot.go
index a56dc89..d79d13f 100644
--- a/cmd/botanist/zedboot.go
+++ b/cmd/botanist/zedboot.go
@@ -386,7 +386,6 @@
}
}
-
imgs, err := build.LoadImages(cmd.imageManifests...)
if err != nil {
return err
diff --git a/cmd/testrunner/main.go b/cmd/testrunner/main.go
index 46375e3..b76e0c4 100644
--- a/cmd/testrunner/main.go
+++ b/cmd/testrunner/main.go
@@ -118,7 +118,7 @@
}
localTester := &SubprocessTester{
- wd: localWD,
+ wd: localWD,
env: os.Environ(),
}
diff --git a/cmd/testsharder/main.go b/cmd/testsharder/main.go
index 5afa756..5518192 100644
--- a/cmd/testsharder/main.go
+++ b/cmd/testsharder/main.go
@@ -5,8 +5,8 @@
import (
"encoding/json"
- "fmt"
"flag"
+ "fmt"
"log"
"os"
diff --git a/command/flags.go b/command/flags.go
index 05a8947..5a304d5 100644
--- a/command/flags.go
+++ b/command/flags.go
@@ -7,20 +7,19 @@
"strings"
)
-
// StringsFlag implements flag.Value so it may be treated as a flag type.
type StringsFlag []string
// Set implements flag.Value.Set.
func (s *StringsFlag) Set(val string) error {
- *s = append(*s, val)
- return nil
+ *s = append(*s, val)
+ return nil
}
// Strings implements flag.Value.String.
func (s *StringsFlag) String() string {
- if s == nil {
- return ""
- }
- return strings.Join([]string(*s), ", ")
+ if s == nil {
+ return ""
+ }
+ return strings.Join([]string(*s), ", ")
}
diff --git a/testrunner/subprocess_runner.go b/testrunner/subprocess_runner.go
index 029c5f3..b2eb951 100644
--- a/testrunner/subprocess_runner.go
+++ b/testrunner/subprocess_runner.go
@@ -26,12 +26,12 @@
// Run executes the given command.
func (r *SubprocessRunner) Run(ctx context.Context, command []string, stdout io.Writer, stderr io.Writer) error {
cmd := exec.Cmd{
- Path: command[0],
- Args: command,
- Stdout: stdout,
- Stderr: stderr,
- Dir: r.WD,
- Env: r.Env,
+ Path: command[0],
+ Args: command,
+ Stdout: stdout,
+ Stderr: stderr,
+ Dir: r.WD,
+ Env: r.Env,
}
return botanist.Run(ctx, cmd)
}