Files
codeql/go/old-change-notes/2020-07-06-tolerate-more-unreachable-returns.md
2022-05-20 10:07:19 -07:00

385 B

lgtm,codescanning

  • The query "Unreachable statement" (go/unreachable-statement) now tolerates more unreachable return statements, which can often be required in Go following a function call that cannot return. Newly tolerated statements include return true, return MyStruct{0, true}, and any return when the return value has type error. This eliminates some nuisance results.