Skip to content

Commit

Permalink
fix: explicitly ignore fprint return values
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Sep 28, 2020
1 parent 7a31a31 commit f50e582
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/identities/delete.go
Expand Up @@ -41,7 +41,7 @@ kratos identities delete $(kratos identities list --format json | jq -r 'map(sel
}

for _, d := range deleted {
fmt.Fprintln(cmd.OutOrStdout(), d)
_, _ = fmt.Fprintln(cmd.OutOrStdout(), d)
}

for _, err := range errs {
Expand Down
4 changes: 2 additions & 2 deletions cmd/identities/validate.go
Expand Up @@ -22,7 +22,7 @@ import (
)

var validateCmd = &cobra.Command{
Use: "validate <file.json [file-2.json [file-3.json] ...]>",
Use: "validate <file.json [file-2.json [file-3.json] ...]>",
Short: "Validate local identity files",
Args: cobra.MinimumNArgs(1),
RunE: func(cmd *cobra.Command, args []string) error {
Expand All @@ -35,7 +35,7 @@ var validateCmd = &cobra.Command{
}
}

fmt.Fprintln(cmd.OutOrStdout(), "All identity files are valid.")
_, _ = fmt.Fprintln(cmd.OutOrStdout(), "All identity files are valid.")
return nil
},
}
Expand Down

0 comments on commit f50e582

Please sign in to comment.