all: Remove deprecated io/ioutil package
Porting everything to the newer imports was trivial except for one instance which required a very small refactor.
This commit is contained in:
@@ -94,6 +94,11 @@ function consistent-imports() {
|
||||
if grep '"golang.org/x/net/context"' "$1"; then # use built-in context
|
||||
return 1
|
||||
fi
|
||||
|
||||
# deprecated import
|
||||
if grep $'\t"io/ioutil"' "$1"; then # use the documented replacements
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
function reflowed-comments() {
|
||||
|
||||
Reference in New Issue
Block a user