Update dependencies (#5518)

This commit is contained in:
hongming
2023-02-12 23:09:20 +08:00
committed by GitHub
parent d3b35fb2da
commit a979342f56
1486 changed files with 126660 additions and 71128 deletions

View File

@@ -9,7 +9,6 @@ import (
"encoding/binary"
"fmt"
"io"
"io/ioutil"
"github.com/open-policy-agent/opa/internal/leb128"
"github.com/open-policy-agent/opa/internal/wasm/constant"
@@ -206,7 +205,7 @@ func readSections(r io.Reader, m *module.Module) error {
}
func readCustomSection(r io.Reader, name string, s *[]module.CustomSection) error {
buf, err := ioutil.ReadAll(r)
buf, err := io.ReadAll(r)
if err != nil {
return err
}

View File

@@ -229,7 +229,7 @@ func writeFunctionSection(w io.Writer, s module.FunctionSection) error {
}
for _, idx := range s.TypeIndices {
if err := leb128.WriteVarUint32(&buf, uint32(idx)); err != nil {
if err := leb128.WriteVarUint32(&buf, idx); err != nil {
return err
}
}