mirror of
https://github.com/miniflux/v2.git
synced 2025-08-01 17:38:37 +00:00
Remove deprecated io/ioutil package
Miniflux now requires at least Go 1.16 and io/util is deprecated. https://golang.org/doc/go1.16#ioutil
This commit is contained in:
parent
713d575bad
commit
a352aff93b
16 changed files with 26 additions and 36 deletions
|
@ -8,7 +8,7 @@ package tests
|
|||
|
||||
import (
|
||||
"bytes"
|
||||
"io/ioutil"
|
||||
"io"
|
||||
"strings"
|
||||
"testing"
|
||||
)
|
||||
|
@ -39,7 +39,7 @@ func TestImport(t *testing.T) {
|
|||
</opml>`
|
||||
|
||||
b := bytes.NewReader([]byte(data))
|
||||
err := client.Import(ioutil.NopCloser(b))
|
||||
err := client.Import(io.NopCloser(b))
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue