Skip to content

Commit

Permalink
[v1.37.1-rc] Fix linters
Browse files Browse the repository at this point in the history
  • Loading branch information
risentveber committed Sep 12, 2022
1 parent 4deb8e5 commit b441984
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions clienttest/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/base64"
"encoding/json"
"fmt"
"io/ioutil"
"os"

"github.com/volatiletech/null"
"go.uber.org/zap"
Expand Down Expand Up @@ -46,7 +46,7 @@ func LoadTest(name string, v AbiVersion) (client.Abi, string) {
}

func LoadAbi(name string, v AbiVersion) client.Abi {
content, err := ioutil.ReadFile("./contracts/" + string(v) + "/" + name + ".abi.json")
content, err := os.ReadFile("./contracts/" + string(v) + "/" + name + ".abi.json")
if err != nil {
panic(err)
}
Expand All @@ -59,7 +59,7 @@ func LoadAbi(name string, v AbiVersion) client.Abi {
}

func LoadTvc(name string, v AbiVersion) string {
content, err := ioutil.ReadFile("./contracts/" + string(v) + "/" + name + ".tvc")
content, err := os.ReadFile("./contracts/" + string(v) + "/" + name + ".tvc")
if err != nil {
panic(err)
}
Expand Down
4 changes: 2 additions & 2 deletions cmd/gen/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main

import (
"encoding/json"
"io/ioutil"
"io"
"log"
"os"

Expand All @@ -23,7 +23,7 @@ func main() {
}
}()

ref, err := ioutil.ReadAll(file)
ref, err := io.ReadAll(file)
var api spec.APIReference
// fmt.Println("ref", ref)
err = json.Unmarshal(ref, &api)
Expand Down

0 comments on commit b441984

Please sign in to comment.