From 9ce0bbe90f3eccd1eb0bd09bddd2de16cd96e432 Mon Sep 17 00:00:00 2001 From: Pavel Karpy Date: Wed, 16 Mar 2022 17:36:37 +0300 Subject: [PATCH] [#1245] cli: Fix linter Signed-off-by: Pavel Karpy --- cmd/neofs-cli/modules/object.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/neofs-cli/modules/object.go b/cmd/neofs-cli/modules/object.go index 01d89cc06..3c8cce178 100644 --- a/cmd/neofs-cli/modules/object.go +++ b/cmd/neofs-cli/modules/object.go @@ -440,7 +440,6 @@ func putObject(cmd *cobra.Command, _ []string) { attrs[index].SetKey(objectV2.SysAttributeExpEpoch) attrs[index].SetValue(expAttrValue) } - } obj := object.New() @@ -823,7 +822,7 @@ func parseObjectNotifications(cmd *cobra.Command) (*object.NotificationInfo, err return nil, nil } - rawSlice := strings.Split(raw, separator) + rawSlice := strings.SplitN(raw, separator, 2) if len(rawSlice) != 2 { return nil, fmt.Errorf("notification must be in the form of: *epoch*%s*topic*, got %s", separator, raw) }