Skip to content

Commit

Permalink
build(deps): bump golangci-lint from v1.50.1 to v1.51.1 (forbole#559)
Browse files Browse the repository at this point in the history
## Description

Closes: #XXXX

Changes:
- Updated golangci-lint from `v1.50.1` to `v1.51.1`
- Updated `io/ioutil` imports

<!-- Add a description of the changes that this PR introduces and the
files that
are the most critical to review. -->

---

### Author Checklist

*All items are required. Please add a note to the item if the item is
not applicable and
please add links to any relevant follow up issues.*

I have...

- [ ] included the correct [type
prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json)
in the PR title
- [ ] added `!` to the type prefix if API or client breaking change
- [ ] targeted the correct branch
- [ ] provided a link to the relevant issue or specification
- [ ] added a changelog entry to `CHANGELOG.md`
- [ ] included comments for [documenting Go
code](https://blog.golang.org/godoc)
- [ ] updated the relevant documentation or specification
- [ ] reviewed "Files changed" and left comments if necessary
- [ ] confirmed all CI checks have passed

### Reviewers Checklist

*All items are required. Please add a note if the item is not applicable
and please add
your handle next to the items reviewed if you only reviewed selected
items.*

I have...

- [ ] confirmed the correct [type
prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json)
in the PR title
- [ ] confirmed `!` in the type prefix if API or client breaking change
- [ ] confirmed all author checklist items have been addressed
- [ ] reviewed API design and naming
- [ ] reviewed documentation is accurate
- [ ] reviewed tests and test coverage
- [ ] manually tested (if applicable)
  • Loading branch information
MonikaCat authored Apr 15, 2023
1 parent e60ca2f commit d68d481
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
.sum
- uses: golangci/[email protected]
with:
version: v1.50.1
version: v1.51.1
args: --timeout 10m
github-token: ${{ secrets.GITHUB_TOKEN }}
if: "env.GIT_DIFF != ''"
4 changes: 2 additions & 2 deletions cmd/migrate/v3/migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package v3

import (
"fmt"
"io/ioutil"
"os"

"github.com/forbole/bdjuno/v4/modules/actions"

Expand Down Expand Up @@ -39,7 +39,7 @@ func RunMigration(parseConfig *parsecmdtypes.Config) error {
return fmt.Errorf("error while serializing config: %s", err)
}

err = ioutil.WriteFile(config.GetConfigFilePath(), bz, 0600)
err = os.WriteFile(config.GetConfigFilePath(), bz, 0600)
if err != nil {
return fmt.Errorf("error while writing v3 config: %s", err)
}
Expand Down
3 changes: 1 addition & 2 deletions cmd/migrate/v3/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package v3

import (
"fmt"
"io/ioutil"
"os"
"path"

Expand All @@ -19,7 +18,7 @@ func GetConfig() (Config, error) {
return Config{}, fmt.Errorf("config file does not exist")
}

bz, err := ioutil.ReadFile(file)
bz, err := os.ReadFile(file)
if err != nil {
return Config{}, fmt.Errorf("error while reading config files: %s", err)
}
Expand Down
4 changes: 2 additions & 2 deletions modules/actions/types/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package types
import (
"encoding/json"
"fmt"
"io/ioutil"
"io"
"net/http"
"time"

Expand Down Expand Up @@ -36,7 +36,7 @@ func (w *ActionsWorker) RegisterHandler(path string, handler ActionHandler) {
writer.Header().Set("Content-Type", "application/json")

// Read the body
reqBody, err := ioutil.ReadAll(request.Body)
reqBody, err := io.ReadAll(request.Body)
if err != nil {
http.Error(writer, "invalid payload", http.StatusBadRequest)
return
Expand Down
4 changes: 2 additions & 2 deletions modules/pricefeed/coingecko/apis.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package coingecko
import (
"encoding/json"
"fmt"
"io/ioutil"
"io"
"math"
"net/http"
"strings"
Expand Down Expand Up @@ -51,7 +51,7 @@ func queryCoinGecko(endpoint string, ptr interface{}) error {

defer resp.Body.Close()

bz, err := ioutil.ReadAll(resp.Body)
bz, err := io.ReadAll(resp.Body)
if err != nil {
return fmt.Errorf("error while reading response body: %s", err)
}
Expand Down
4 changes: 2 additions & 2 deletions modules/staking/keybase/apis.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package keybase
import (
"encoding/json"
"fmt"
"io/ioutil"
"io"
"net/http"
)

Expand Down Expand Up @@ -51,7 +51,7 @@ func queryKeyBase(endpoint string, ptr interface{}) error {

defer resp.Body.Close()

bz, err := ioutil.ReadAll(resp.Body)
bz, err := io.ReadAll(resp.Body)
if err != nil {
return fmt.Errorf("error while reading response body: %s", err)
}
Expand Down

0 comments on commit d68d481

Please sign in to comment.