Skip to content

Commit

Permalink
fix conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
refs committed Jul 15, 2021
1 parent 052d4d9 commit 8de3310
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions internal/http/services/owncloud/ocdav/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
package ocdav

import (
"context"
"fmt"
"net/http"
"path"
Expand All @@ -30,11 +31,7 @@ import (
"go.opencensus.io/trace"
)

<<<<<<< HEAD
func (s *svc) handlePathDelete(w http.ResponseWriter, r *http.Request, ns string) {
=======
func (s *svc) handleDelete(w http.ResponseWriter, r *http.Request, ns string) {
>>>>>>> dc5c2add... remove unusedf key
ctx := r.Context()
ctx, span := trace.StartSpan(ctx, "delete")
defer span.End()
Expand All @@ -54,23 +51,7 @@ func (s *svc) handleDelete(ctx context.Context, w http.ResponseWriter, r *http.R
return
}

<<<<<<< HEAD
req := &provider.DeleteRequest{Ref: ref}
=======
req := &provider.DeleteRequest{
Ref: &provider.Reference{
Path: fn,
},
}

<<<<<<< HEAD
if err := s.deleteReceivedShare(ctx, fn, client, w, req); err != nil {
sublog.Error().Err(err).Msg("deleting shared resource")
}

>>>>>>> a7293b40... comment out fc
=======
>>>>>>> ce52d290... move logic over to the reva gateway
res, err := client.Delete(ctx, req)
if err != nil {
log.Error().Err(err).Msg("error performing delete grpc request")
Expand Down

0 comments on commit 8de3310

Please sign in to comment.