From 07e2c3a50f09a1ec753878f057c4d08333403c2b Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Fri, 28 Jun 2019 22:38:41 +0100 Subject: [PATCH] b2: fix nil pointer error introduced by context propagation patch For some reason f78cd1e0434ee597 introduced an unrelated change - perhaps a merge error. Removing this change fixes the nil pointer problem. --- backend/b2/b2.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/backend/b2/b2.go b/backend/b2/b2.go index 9bbcbfa50..65e643a11 100644 --- a/backend/b2/b2.go +++ b/backend/b2/b2.go @@ -1210,9 +1210,6 @@ func (o *Object) decodeMetaDataFileInfo(info *api.FileInfo) (err error) { // getMetaData gets the metadata from the object unconditionally func (o *Object) getMetaData(ctx context.Context) (info *api.File, err error) { - if o.id != "" { - return nil, nil - } maxSearched := 1 var timestamp api.Timestamp baseRemote := o.remote