From 0f3570bdebf26a093e4c2454b2a94a5033e26acd Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Mon, 11 Jan 2021 18:17:42 +0300 Subject: [PATCH] [#302] Fix golint naming linter errors Signed-off-by: Alex Vanin --- cmd/neofs-cli/modules/object.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/neofs-cli/modules/object.go b/cmd/neofs-cli/modules/object.go index 5ebdd3b86..1ef48855a 100644 --- a/cmd/neofs-cli/modules/object.go +++ b/cmd/neofs-cli/modules/object.go @@ -752,12 +752,12 @@ func printSplitHeader(cmd *cobra.Command, obj *object.Object) 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") switch { - case toJson && toProto: + case toJSON && toProto: return nil, errors.New("'--json' and '--proto' flags are mutually exclusive") - case toJson: + case toJSON: return hdr.MarshalJSON() case toProto: return hdr.Marshal()