Skip to content

Commit e8367ef

Browse files
committed
Lint
1 parent 9bbd407 commit e8367ef

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

internal/boxcli/auth.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,12 +152,13 @@ func authNewTokenCommand() *cobra.Command {
152152
ux.Fsuccessf(cmd.OutOrStdout(), "Token created.\n\n")
153153
table := tablewriter.NewWriter(cmd.OutOrStdout())
154154
// Row lines are configured through the renderer in the new API
155-
table.Bulk([][]string{
155+
if err := table.Bulk([][]string{
156156
{"Token ID", pat.GetToken().GetId()},
157157
{"Secret", pat.GetToken().GetSecret()},
158-
})
159-
table.Render()
160-
return nil
158+
}); err != nil {
159+
return err
160+
}
161+
return table.Render()
161162
},
162163
}
163164

0 commit comments

Comments
 (0)