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:
parent
6bc819e198
commit
fc4bdf3ab0
4 changed files with 7 additions and 12 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue