From 92a58284fa90ff52d712aa46cf935e70c9aa8115 Mon Sep 17 00:00:00 2001 From: Gianmaria Del Monte Date: Mon, 22 Nov 2021 09:51:40 +0100 Subject: [PATCH] Fix linting --- pkg/eosclient/eosbinary/eosbinary.go | 2 +- pkg/storage/utils/eosfs/eosfs.go | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/pkg/eosclient/eosbinary/eosbinary.go b/pkg/eosclient/eosbinary/eosbinary.go index 4fb48fab95..b9c1f6a5a4 100644 --- a/pkg/eosclient/eosbinary/eosbinary.go +++ b/pkg/eosclient/eosbinary/eosbinary.go @@ -637,7 +637,7 @@ func (c *Client) Remove(ctx context.Context, auth eosclient.Authorization, path if noRecycle { args = append(args, "--no-recycle-bin") // do not put the file in the recycle bin } - args = append(args, path) + args = append(args, path) _, _, err := c.executeEOS(ctx, args, auth) return err } diff --git a/pkg/storage/utils/eosfs/eosfs.go b/pkg/storage/utils/eosfs/eosfs.go index 7c6671e03e..9873643676 100644 --- a/pkg/storage/utils/eosfs/eosfs.go +++ b/pkg/storage/utils/eosfs/eosfs.go @@ -1288,11 +1288,11 @@ func (fs *eosfs) Delete(ctx context.Context, ref *provider.Reference) error { func getRootAuth() eosclient.Authorization { return eosclient.Authorization{ - Role: eosclient.Role{ - UID: "0", - GID: "0", - }, - } + Role: eosclient.Role{ + UID: "0", + GID: "0", + }, + } } func (fs *eosfs) deleteShadow(ctx context.Context, p string) error { @@ -1302,7 +1302,7 @@ func (fs *eosfs) deleteShadow(ctx context.Context, p string) error { if fs.isShareFolderChild(ctx, p) { fn := fs.wrapShadow(ctx, p) - + // in order to remove definitely the folder or the file // without moving it to the recycle bin, we should take // the priviledges of the root