linter: Enable gofumpt and run against codebase (#1848)

* linter: Enable gofumpt and run against codebase

* Address shazbert's nits

* gofumpt: Fix issues after rebase
This commit is contained in:
Adrian Gallagher
2025-03-18 10:23:16 +11:00
committed by GitHub
parent 748ed71455
commit f5faca2eb2
189 changed files with 1541 additions and 1104 deletions

View File

@@ -144,7 +144,6 @@ func executeStrategyFromFile(c *cli.Context) error {
IntervalOverride: durationpb.New(intervalOverride),
},
)
if err != nil {
return err
}
@@ -171,7 +170,6 @@ func listAllTasks(c *cli.Context) error {
c.Context,
&btrpc.ListAllTasksRequest{},
)
if err != nil {
return err
}
@@ -217,7 +215,6 @@ func startTask(c *cli.Context) error {
Id: id,
},
)
if err != nil {
return err
}
@@ -244,7 +241,6 @@ func startAllTasks(c *cli.Context) error {
c.Context,
&btrpc.StartAllTasksRequest{},
)
if err != nil {
return err
}
@@ -291,7 +287,6 @@ func stopTask(c *cli.Context) error {
Id: id,
},
)
if err != nil {
return err
}
@@ -318,7 +313,6 @@ func stopAllTasks(c *cli.Context) error {
c.Context,
&btrpc.StopAllTasksRequest{},
)
if err != nil {
return err
}
@@ -365,7 +359,6 @@ func clearTask(c *cli.Context) error {
Id: id,
},
)
if err != nil {
return err
}
@@ -392,7 +385,6 @@ func clearAllTasks(c *cli.Context) error {
c.Context,
&btrpc.ClearAllTasksRequest{},
)
if err != nil {
return err
}
@@ -623,7 +615,6 @@ func executeStrategyFromConfig(c *cli.Context) error {
DoNotStore: dns,
},
)
if err != nil {
return err
}

View File

@@ -50,7 +50,8 @@ func setupClient(c *cli.Context) (*grpc.ClientConn, context.CancelFunc, error) {
return nil, nil, err
}
opts := []grpc.DialOption{grpc.WithTransportCredentials(creds),
opts := []grpc.DialOption{
grpc.WithTransportCredentials(creds),
grpc.WithPerRPCCredentials(auth.BasicAuth{
Username: username,
Password: password,