Skip to content

Commit

Permalink
bump golangci-lint action
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman Sarvarov committed Jun 11, 2024
1 parent b2f3946 commit b4b9cf8
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
install-go: false

- name: Run golangci-lint
uses: golangci/golangci-lint-action@v3.4.0
uses: golangci/golangci-lint-action@v6.0.1
with:
skip-pkg-cache: true
skip-build-cache: true
Expand Down
4 changes: 0 additions & 4 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ linters:
enable:
- asciicheck
- bodyclose
- deadcode
- depguard
- dogsled
- dupl
Expand Down Expand Up @@ -55,11 +54,9 @@ linters:
- nolintlint
- prealloc
- predeclared
- revive
- rowserrcheck
- sqlclosecheck
- staticcheck
- structcheck
- stylecheck
- tagliatelle
- thelper
Expand All @@ -68,6 +65,5 @@ linters:
- unconvert
- unparam
- unused
- varcheck
- wastedassign
- whitespace
2 changes: 0 additions & 2 deletions props.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,11 @@ func (i *Inertia) propsKeysToReturn(r *http.Request, component string) map[strin
func resolvePropVal(val any) (_ any, err error) {
if closure, ok := val.(func() (any, error)); ok {
val, err = closure()

if err != nil {
return nil, fmt.Errorf("closure prop resolving: %w", err)
}
} else if lazy, ok := val.(LazyProp); ok {
val, err = lazy()

if err != nil {
return nil, fmt.Errorf("lazy prop resolving: %w", err)
}
Expand Down

0 comments on commit b4b9cf8

Please sign in to comment.