Skip to content

Commit

Permalink
fix: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
alexisvisco committed Sep 15, 2022
1 parent 8e3ccc4 commit 634ef71
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ linters:
- dupl # Tool for code clone detection
- goconst # Finds repeated strings that could be replaced by a constant
- gocyclo # Computes and checks the cyclomatic complexity of functions
- gofmt # Gofmt checks whether code was gofmt-ed. By default this tool runs with -s option to check for code simplification
- goimports
- misspell # Finds commonly misspelled English words in comments
- lll # Reports long lines
- unparam # Reports unused function parameters
Expand Down
3 changes: 2 additions & 1 deletion examples/demo-standard-http/main.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package main

import (
"github.com/alexisvisco/kcd"
"net/http"

"github.com/alexisvisco/kcd"
)

func main() {
Expand Down
3 changes: 2 additions & 1 deletion handler_test.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
package kcd_test

import (
"github.com/alexisvisco/kcd/pkg/errors"
"net/http"
"net/http/httptest"
"strings"
"testing"
"time"

"github.com/alexisvisco/kcd/pkg/errors"

"github.com/gavv/httpexpect"
"github.com/go-chi/chi"
"github.com/stretchr/testify/assert"
Expand Down
4 changes: 2 additions & 2 deletions pkg/hook/bind.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package hook

import (
"encoding/json"
"io/ioutil"
"io"
"net/http"
"strings"

Expand All @@ -21,7 +21,7 @@ func Bind(maxBodyBytes int64) BindHook {
}
r.Body = http.MaxBytesReader(w, r.Body, maxBodyBytes)

bytesBody, err := ioutil.ReadAll(r.Body)
bytesBody, err := io.ReadAll(r.Body)
if err != nil {
return errors.Wrap(err, "unable to read body").WithKind(kcderr.InputCritical)
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/hook/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package hook
import (
"context"

"github.com/alexisvisco/ozzo-validation/v4"
validation "github.com/alexisvisco/ozzo-validation/v4"
)

// Validate is the default validation hook.
Expand Down

0 comments on commit 634ef71

Please sign in to comment.