1
1
mirror of https://github.com/wader/fq.git synced 2024-11-27 06:04:47 +03:00

Merge pull request #350 from wader/bump-github-golangci-lint-1.47.3

Update github-golangci-lint from 1.47.2 to 1.47.3
This commit is contained in:
Mattias Wadman 2022-08-01 18:54:35 +02:00 committed by GitHub
commit 888a471245
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View File

@ -7,7 +7,7 @@ on:
pull_request:
env:
GOLANGCILINT_VERSION: 1.47.2
GOLANGCILINT_VERSION: 1.47.3
jobs:
lint:

View File

@ -82,7 +82,7 @@ func FuzzFormats(f *testing.F) {
return nil
}
if st, err := os.Stat(path); err != nil || st.IsDir() {
return nil
return err
}
b, readErr := ioutil.ReadFile(path)

View File

@ -258,6 +258,7 @@ func (i *Interp) _decode(c any, format string, opts decodeOpts) any {
if len(opts.Remain) > 0 {
if err := mapstruct.ToStruct(opts.Remain, &inArg); err != nil {
// TODO: currently ignores failed struct mappings
//nolint: nilerr
return f.DecodeInArg, nil
}
}