[#302] Fix golint naming linter errors
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
74a68af5c2
commit
0f3570bdeb
1 changed files with 3 additions and 3 deletions
|
@ -752,12 +752,12 @@ func printSplitHeader(cmd *cobra.Command, obj *object.Object) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
func marshalHeader(cmd *cobra.Command, hdr *object.Object) ([]byte, error) {
|
func marshalHeader(cmd *cobra.Command, hdr *object.Object) ([]byte, error) {
|
||||||
toJson, _ := cmd.Flags().GetBool("json")
|
toJSON, _ := cmd.Flags().GetBool("json")
|
||||||
toProto, _ := cmd.Flags().GetBool("proto")
|
toProto, _ := cmd.Flags().GetBool("proto")
|
||||||
switch {
|
switch {
|
||||||
case toJson && toProto:
|
case toJSON && toProto:
|
||||||
return nil, errors.New("'--json' and '--proto' flags are mutually exclusive")
|
return nil, errors.New("'--json' and '--proto' flags are mutually exclusive")
|
||||||
case toJson:
|
case toJSON:
|
||||||
return hdr.MarshalJSON()
|
return hdr.MarshalJSON()
|
||||||
case toProto:
|
case toProto:
|
||||||
return hdr.Marshal()
|
return hdr.Marshal()
|
||||||
|
|
Loading…
Reference in a new issue