[#1245] cli: Fix linter
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
parent
5506b7af29
commit
9ce0bbe90f
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue