Files
codeql/change-notes
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
..
2019-11-25 15:48:58 +00:00
2020-04-17 13:19:11 +01:00
2020-05-13 04:31:23 -07:00
2020-05-13 15:55:52 +01:00
2020-05-20 10:10:28 +01:00
2020-05-22 11:11:58 +01:00
2020-06-16 15:48:39 +01:00
2020-06-17 15:14:16 +01:00
2020-06-22 09:22:47 +01:00
2020-06-25 22:23:49 +01:00