Files
codeql/ql/src/RedundantCode
Chris Smowton 5b34c05916 UnreachableStatement: tolerate more harmless unreachable return statements
The Golang compiler isn't particularly good at spotting paths that don't need a return statement due to a dominating noreturn statement (e.g. os.Exit(1)), so dead return statements are common. We already tried to tolerate some instances of this pattern; this additionally allows 'true' and 'false' literals, and anything of type 'error'.

The carte-blanche for error values aims to accommodate the pattern "abort(); return whateverErrorWouldOtherwiseBeAppropriate();", which is probably preferable to "return nil", a misleading no-error indication.
2020-07-06 17:02:26 +01:00
..
2020-03-20 17:36:08 +00:00
2020-04-08 07:32:43 +01:00
2020-04-08 07:32:43 +01:00
2020-05-18 17:05:49 +01:00