mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-08-28 22:28:43 -04:00
Bump wsl to v3.2.0 (#1750)
This commit is contained in:
parent
92d38e5237
commit
b7aac3b1ad
6 changed files with 16 additions and 2 deletions
9
test/testdata/wsl.go
vendored
9
test/testdata/wsl.go
vendored
|
@ -66,7 +66,14 @@ func main() {
|
|||
"multiple",
|
||||
)
|
||||
if err != nil { // ERROR "if statements should only be cuddled with assignments used in the if statement itself"
|
||||
panic(notErr)
|
||||
panic("not from the line above")
|
||||
}
|
||||
|
||||
// This is OK since we use a variable from the line above, even if we don't
|
||||
// check it with the if.
|
||||
xx := notErr
|
||||
if err != nil {
|
||||
panic(xx)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue