[#452] Fix lint issues

Signed-off-by: Denis Kirillov <denis@nspcc.ru>
This commit is contained in:
Denis Kirillov 2022-05-31 12:13:55 +03:00 committed by Alex Vanin
parent 1a456eaa8b
commit 5b9a5cadef
3 changed files with 6 additions and 6 deletions

4
api/cache/system.go vendored
View file

@ -119,7 +119,7 @@ func (o *SystemCache) GetNotificationConfiguration(key string) *data.Notificatio
return result return result
} }
// GetTagging returns tags of a bucket or an object // GetTagging returns tags of a bucket or an object.
func (o *SystemCache) GetTagging(key string) map[string]string { func (o *SystemCache) GetTagging(key string) map[string]string {
entry, err := o.cache.Get(key) entry, err := o.cache.Get(key)
if err != nil { if err != nil {
@ -156,7 +156,7 @@ func (o *SystemCache) PutNotificationConfiguration(key string, obj *data.Notific
return o.cache.Set(key, obj) return o.cache.Set(key, obj)
} }
// PutTagging puts tags of a bucket or an object // PutTagging puts tags of a bucket or an object.
func (o *SystemCache) PutTagging(key string, tagSet map[string]string) error { func (o *SystemCache) PutTagging(key string, tagSet map[string]string) error {
return o.cache.Set(key, tagSet) return o.cache.Set(key, tagSet)
} }

View file

@ -66,15 +66,15 @@ func (n *layer) GetBucketNotificationConfiguration(ctx context.Context, bktInfo
return conf, nil return conf, nil
} }
objId, err := n.treeService.GetNotificationConfigurationNode(ctx, &bktInfo.CID) objID, err := n.treeService.GetNotificationConfigurationNode(ctx, &bktInfo.CID)
if err != nil && !errorsStd.Is(err, ErrNodeNotFound) { if err != nil && !errorsStd.Is(err, ErrNodeNotFound) {
return nil, err return nil, err
} }
conf := &data.NotificationConfiguration{} conf := &data.NotificationConfiguration{}
if objId != nil { if objID != nil {
obj, err := n.objectGet(ctx, bktInfo, *objId) obj, err := n.objectGet(ctx, bktInfo, *objID)
if err != nil { if err != nil {
return nil, err return nil, err
} }