Skip to content

Commit f1e4c9d

Browse files
committed
chore: replace ioutil with io/os
1 parent e5d3c51 commit f1e4c9d

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

utils_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"bytes"
55
"fmt"
66
"io"
7-
"io/ioutil"
87
"net/http"
98
"net/url"
109
"strings"
@@ -112,7 +111,7 @@ func (ho httpWriter) WriteHeader(code int) {
112111

113112
func format(b string) io.ReadCloser {
114113
s := strings.NewReader(b)
115-
r := ioutil.NopCloser(s)
114+
r := io.NopCloser(s)
116115
r.Close()
117116
return r
118117
}

0 commit comments

Comments
 (0)