Skip to content

Commit 5c4047f

Browse files
committed
appstream: drop no-op io.Reader conversion
*gzip.Reader already satisfies io.Reader.
1 parent fc3449d commit 5c4047f

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

internal/appstream/update.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import (
77
"encoding/json"
88
"errors"
99
"fmt"
10-
"io"
1110
"log/slog"
1211
"net/http"
1312
"strings"
@@ -155,5 +154,5 @@ func fetchRepoComponents(ctx context.Context, client *http.Client, base, version
155154
}
156155
defer func() { _ = gz.Close() }()
157156

158-
return ParseComponentsXML(io.Reader(gz), fn)
157+
return ParseComponentsXML(gz, fn)
159158
}

0 commit comments

Comments
 (0)