Skip to content

Commit

Permalink
check err
Browse files Browse the repository at this point in the history
  • Loading branch information
jbowen93 committed Feb 21, 2022
1 parent 29d56de commit be85542
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cmd/flags_header.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,12 @@ func HeadersFlags() *flag.FlagSet {

// ParseHeadersFlags parses Header package flags from the given cmd and applies values to Env.
func ParseHeadersFlags(cmd *cobra.Command, env *Env) error {
ParseTrustedHashFlags(cmd, env)
ParseTrustedPeerFlags(cmd, env)
if err := ParseTrustedHashFlags(cmd, env); err != nil {
return err
}
if err := ParseTrustedPeerFlags(cmd, env); err != nil {
return err
}

return nil
}
Expand Down

0 comments on commit be85542

Please sign in to comment.