1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-06-27 16:36:00 +00:00

Inline a one-liner function

No need to expose a symbol for this.
This commit is contained in:
jvoisin 2024-03-20 20:44:41 +01:00 committed by Frédéric Guillot
parent 6bc819e198
commit fc4bdf3ab0
4 changed files with 7 additions and 12 deletions

View file

@ -35,8 +35,3 @@ func CharsetReader(charsetLabel string, input io.Reader) (io.Reader, error) {
// Transform document to UTF-8 from the specified encoding in XML prolog.
return charset.NewReaderLabel(charsetLabel, r)
}
// CharsetReaderFromContentType is used when the encoding is not specified for the input document.
func CharsetReaderFromContentType(contentType string, input io.Reader) (io.Reader, error) {
return charset.NewReader(input, contentType)
}