treewide: run gofmt -s and enable linter
Change-Id: I90b8ef48c955dccfddc5bbc0a57205b7da844b60
Reviewed-on: https://review.monogon.dev/c/monogon/+/3828
Tested-by: Jenkins CI
Reviewed-by: Leopold Schabel <leo@monogon.tech>
diff --git a/cloud/bmaas/bmdb/sessions_test.go b/cloud/bmaas/bmdb/sessions_test.go
index 9806ddb..36fb4a4 100644
--- a/cloud/bmaas/bmdb/sessions_test.go
+++ b/cloud/bmaas/bmdb/sessions_test.go
@@ -613,9 +613,9 @@
// Wait for at least three workers to be alive.
for i := 0; i < 3; i++ {
select {
- case workStarted <- struct{}{}:
- case <-ctx.Done():
- t.FailNow()
+ case workStarted <- struct{}{}:
+ case <-ctx.Done():
+ t.FailNow()
}
}
diff --git a/cloud/equinix/cli/cmd_list.go b/cloud/equinix/cli/cmd_list.go
index bfbb21d..ab6b9cf 100644
--- a/cloud/equinix/cli/cmd_list.go
+++ b/cloud/equinix/cli/cmd_list.go
@@ -16,10 +16,10 @@
)
var listCmd = &cobra.Command{
- Use: "list",
+ Use: "list",
Long: `This lists all hardware reservations inside a specified organization or project.`,
- Args: cobra.NoArgs,
- Run: doList,
+ Args: cobra.NoArgs,
+ Run: doList,
}
func init() {
diff --git a/cloud/shepherd/manager/provider_test.go b/cloud/shepherd/manager/provider_test.go
index c88c996..3f6b139 100644
--- a/cloud/shepherd/manager/provider_test.go
+++ b/cloud/shepherd/manager/provider_test.go
@@ -96,8 +96,8 @@
}
type dummyProvider struct {
- capacity int
- machines map[shepherd.ProviderID]*dummyMachine
+ capacity int
+ machines map[shepherd.ProviderID]*dummyMachine
muMachines sync.RWMutex
}