Skip to content

Commit

Permalink
style: lint fix
Browse files Browse the repository at this point in the history
Signed-off-by: rogerogers <[email protected]>
  • Loading branch information
rogerogers committed Feb 28, 2024
1 parent b0b8482 commit 6782f1f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,11 @@ jobs:
strategy:
matrix: ${{ fromJson(needs.resolve-modules.outputs.matrix) }}
steps:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.21
- uses: actions/checkout@v3
- name: Lint
uses: golangci/golangci-lint-action@v3
with:
version: latest
working-directory: ${{ matrix.workdir }}
args: --timeout 30m -E gofumpt
args: --timeout 30m -E gofumpt --go 1.21
skip-pkg-cache: true
1 change: 0 additions & 1 deletion book-shop/app/item/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ func main() {
)

err = svr.Run()

if err != nil {
log.Println(err.Error())
}
Expand Down
4 changes: 2 additions & 2 deletions open-payment-platform/pkg/auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
package auth

import (
"crypto/rand"
"encoding/hex"
"errors"
"math/rand"
)

type SignType string
Expand Down Expand Up @@ -54,6 +54,6 @@ func (a *authSM3) Verify(sign string, data map[string]interface{}) bool {

func (a *authSM3) Sign(data map[string]interface{}) string {
result := make([]byte, 10)
rand.Read(result)
rand.Read(result) //nolint:errcheck
return hex.EncodeToString(result)
}

0 comments on commit 6782f1f

Please sign in to comment.