Skip to content

Commit b0466f0

Browse files
fixed a gosec issue
1 parent b1a6f0a commit b0466f0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

plugin/commands/user/details.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,8 @@ func (cmd *DetailsCommand) Run(args []string) error {
212212
}
213213

214214
if outputFormat == "JSON" {
215-
utils.PrintPrettyJSON(cmd.UI, userInfo)
215+
err := utils.PrintPrettyJSON(cmd.UI, userInfo)
216+
return err
216217
}
217218
return nil
218219

0 commit comments

Comments
 (0)