From 5b9a5cadefdc775a770685b32ff80e5468c1fa59 Mon Sep 17 00:00:00 2001 From: Denis Kirillov Date: Tue, 31 May 2022 12:13:55 +0300 Subject: [PATCH] [#452] Fix lint issues Signed-off-by: Denis Kirillov --- api/cache/system.go | 4 ++-- api/layer/notifications.go | 6 +++--- internal/neofs/tree_signature.go | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/api/cache/system.go b/api/cache/system.go index 95bd1396..cf091584 100644 --- a/api/cache/system.go +++ b/api/cache/system.go @@ -119,7 +119,7 @@ func (o *SystemCache) GetNotificationConfiguration(key string) *data.Notificatio 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 { entry, err := o.cache.Get(key) if err != nil { @@ -156,7 +156,7 @@ func (o *SystemCache) PutNotificationConfiguration(key string, obj *data.Notific 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 { return o.cache.Set(key, tagSet) } diff --git a/api/layer/notifications.go b/api/layer/notifications.go index f814eace..0ee32b48 100644 --- a/api/layer/notifications.go +++ b/api/layer/notifications.go @@ -66,15 +66,15 @@ func (n *layer) GetBucketNotificationConfiguration(ctx context.Context, bktInfo 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) { return nil, err } conf := &data.NotificationConfiguration{} - if objId != nil { - obj, err := n.objectGet(ctx, bktInfo, *objId) + if objID != nil { + obj, err := n.objectGet(ctx, bktInfo, *objID) if err != nil { return nil, err } diff --git a/internal/neofs/tree_signature.go b/internal/neofs/tree_signature.go index e82e8eeb..4b7d91f2 100644 --- a/internal/neofs/tree_signature.go +++ b/internal/neofs/tree_signature.go @@ -1,4 +1,4 @@ -/* REMOVE THIS AFTER SIGNATURE WILL BE AVAILABLE IN TREE CLIENT FROM NEOFS NODE */ +/*REMOVE THIS AFTER SIGNATURE WILL BE AVAILABLE IN TREE CLIENT FROM NEOFS NODE*/ package neofs import (