From 29f8aea1ce1b491a088f4c6a2d042cd5ef0571f5 Mon Sep 17 00:00:00 2001 From: Darren Dowker Date: Thu, 6 Jun 2024 12:35:11 -0700 Subject: [PATCH] another fix --- broker/client/reader.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/broker/client/reader.go b/broker/client/reader.go index e464a651..235b0b2b 100644 --- a/broker/client/reader.go +++ b/broker/client/reader.go @@ -302,7 +302,12 @@ func OpenFragmentURL(ctx context.Context, fragment pb.Fragment, offset int64, ur } func OpenUnsignedFragmentURL(ctx context.Context, fragment pb.Fragment, offset int64, url *url.URL) (*FragmentReader, error) { - if rdr, err := gcs.open(ctx, url, fragment); err != nil { + var ( + rdr io.ReadCloser + err error + ) + + if rdr, err = gcs.open(ctx, url, fragment); err != nil { return nil, err }