Skip to content

Commit

Permalink
eosfs: small refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
fbx authored and Fabrizio Furano committed Feb 9, 2024
1 parent 716bdc1 commit e6127c5
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions pkg/storage/utils/eosfs/eosfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -1215,20 +1215,11 @@ func (fs *eosfs) GetMD(ctx context.Context, ref *provider.Reference, mdKeys []st
log := appctx.GetLogger(ctx)
log.Info().Msg("eosfs: get md for ref:" + ref.String())

u, err := getUser(ctx)
_, err := getUser(ctx)
if err != nil {
return nil, err
}

// TODO (lopresti) do we need this?
if u.Id.Type == userpb.UserType_USER_TYPE_LIGHTWEIGHT ||
u.Id.Type == userpb.UserType_USER_TYPE_FEDERATED {
_, err := fs.resolve(ctx, ref)
if err != nil {
return nil, errors.Wrap(err, "eosfs: error resolving reference")
}
}

auth, err := fs.getRootAuth(ctx)
if err != nil {
return nil, err
Expand Down

0 comments on commit e6127c5

Please sign in to comment.