Skip to content

Commit

Permalink
remove unnecessary reader close()
Browse files Browse the repository at this point in the history
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
  • Loading branch information
berndverst committed Nov 28, 2022
1 parent 54a1514 commit 385c6b7
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions bindings/azure/blobstorage/blobstorage.go
Expand Up @@ -194,10 +194,6 @@ func (a *AzureBlobStorage) get(ctx context.Context, req *bindings.InvokeRequest)
if err != nil {
return nil, fmt.Errorf("error reading az blob: %w", err)
}
err = reader.Close()
if err != nil {
return nil, fmt.Errorf("error closing az blob reader: %w", err)
}

var metadata map[string]string
fetchMetadata, err := req.GetMetadataAsBool(metadataKeyIncludeMetadata)
Expand Down

0 comments on commit 385c6b7

Please sign in to comment.