Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
gmgigi96 committed Nov 22, 2021
1 parent 38dcc5d commit 92a5828
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pkg/eosclient/eosbinary/eosbinary.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
12 changes: 6 additions & 6 deletions pkg/storage/utils/eosfs/eosfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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
Expand Down

0 comments on commit 92a5828

Please sign in to comment.