Skip to content

Commit 9dbc82d

Browse files
committed
fix(lint): handle err
1 parent 3239d53 commit 9dbc82d

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

  • internal/cmd/service-account/key/create

internal/cmd/service-account/key/create/create.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ func NewCmd(params *types.CmdParams) *cobra.Command {
8686
return fmt.Errorf("create service account key: %w", err)
8787
}
8888

89-
params.Printer.OutputResult(model.OutputFormat, resp, func() error {
89+
return params.Printer.OutputResult(model.OutputFormat, resp, func() error {
9090
params.Printer.Outputf("Created key for service account %s with ID %q\n", model.ServiceAccountEmail, resp.Id)
9191

9292
key, err := json.MarshalIndent(resp, "", " ")
@@ -96,8 +96,6 @@ func NewCmd(params *types.CmdParams) *cobra.Command {
9696
params.Printer.Outputln(string(key))
9797
return nil
9898
})
99-
100-
return nil
10199
},
102100
}
103101

0 commit comments

Comments
 (0)