[#1245] cli: Fix linter

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
remotes/fyrchik/fix-uri-parsing
Pavel Karpy 2022-03-16 17:36:37 +03:00 committed by Alex Vanin
parent 5506b7af29
commit 9ce0bbe90f
1 changed files with 1 additions and 2 deletions

View File

@ -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)
}