mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-04 23:16:57 +08:00
change: replace ioutil.ReadAll with io.ReadAll
This commit is contained in:
@@ -3,7 +3,6 @@ package gadb
|
||||
import (
|
||||
"fmt"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"net"
|
||||
"regexp"
|
||||
"strconv"
|
||||
@@ -97,7 +96,7 @@ func (t transport) ReadStringAll() (s string, err error) {
|
||||
}
|
||||
|
||||
func (t transport) ReadBytesAll() (raw []byte, err error) {
|
||||
raw, err = ioutil.ReadAll(t.sock)
|
||||
raw, err = io.ReadAll(t.sock)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user