Skip to content

Commit 4edeb44

Browse files
committed
fix lint
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
1 parent 528843e commit 4edeb44

File tree

1 file changed

+5
-1
lines changed
  • pkg/ocm/storage/received

1 file changed

+5
-1
lines changed

pkg/ocm/storage/received/ocm.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ import (
3838
ocmpb "github.com/cs3org/go-cs3apis/cs3/sharing/ocm/v1beta1"
3939
provider "github.com/cs3org/go-cs3apis/cs3/storage/provider/v1beta1"
4040
typepb "github.com/cs3org/go-cs3apis/cs3/types/v1beta1"
41+
"github.com/studio-b12/gowebdav"
42+
4143
"github.com/cs3org/reva/v2/pkg/errtypes"
4244
"github.com/cs3org/reva/v2/pkg/events"
4345
"github.com/cs3org/reva/v2/pkg/mime"
@@ -49,7 +51,6 @@ import (
4951
"github.com/cs3org/reva/v2/pkg/storagespace"
5052
"github.com/cs3org/reva/v2/pkg/utils"
5153
"github.com/cs3org/reva/v2/pkg/utils/cfg"
52-
"github.com/studio-b12/gowebdav"
5354
)
5455

5556
func init() {
@@ -378,6 +379,9 @@ func (d *driver) Download(ctx context.Context, ref *provider.Reference, openRead
378379
return nil, nil, err
379380
}
380381
md, err := convertStatToResourceInfo(ref, info, share)
382+
if err != nil {
383+
return nil, nil, err
384+
}
381385

382386
if !openReaderfunc(md) {
383387
return md, nil, nil

0 commit comments

Comments
 (0)