Bump wsl to v3.2.0 (#1750)

This commit is contained in:
Simon Sawert 2021-02-20 15:16:10 +01:00 committed by GitHub
parent 92d38e5237
commit b7aac3b1ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 16 additions and 2 deletions

View file

@ -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)
}
}