Skip to content

Commit

Permalink
chore: set lint go version
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 e842b4a commit 83fd1d5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 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 gomall/app/product/biz/model/product.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ func (c CachedProductQuery) GetById(productId int) (product Product, err error)
}
return nil
}()

if err != nil {
product, err = c.productQuery.GetById(productId)
if err != nil {
Expand Down

0 comments on commit 83fd1d5

Please sign in to comment.