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
2019-11-08 12:16:26 +00:00
2019-11-08 12:16:26 +00:00
2020-06-12 09:16:41 -07:00
2019-11-08 12:16:26 +00:00
2019-11-08 12:16:26 +00:00
2019-11-08 12:16:26 +00:00
2020-04-08 07:32:43 +01:00
2019-11-08 12:16:26 +00:00
2019-11-08 12:16:26 +00:00
2020-01-14 07:15:43 +00:00
2019-11-08 12:16:26 +00:00
2019-11-08 12:16:26 +00:00
2019-11-08 12:16:26 +00:00
2019-11-08 12:16:26 +00:00
2019-11-08 12:16:26 +00:00
2019-11-08 12:16:26 +00:00
2019-11-08 12:16:26 +00:00
2019-11-08 12:16:26 +00:00
2019-11-08 12:16:26 +00:00
2019-11-08 12:16:26 +00:00
2019-11-08 12:16:26 +00:00
2019-11-08 12:16:26 +00:00
2019-11-08 12:16:26 +00:00
2019-11-08 12:16:26 +00:00
2019-11-08 12:16:26 +00:00
2019-11-08 12:16:26 +00:00
2020-04-08 07:32:43 +01:00
2019-11-08 12:16:26 +00:00
2019-11-26 20:28:53 +00:00
2019-11-27 10:47:42 +00:00
2020-01-21 10:04:57 +00:00
2019-11-26 20:28:53 +00:00
2019-11-08 12:16:26 +00:00
2019-11-08 12:16:26 +00:00
2020-02-19 01:39:14 -08:00
2019-11-08 12:16:26 +00:00
2019-11-08 12:16:26 +00:00
2019-11-08 12:16:26 +00:00
2020-01-10 14:46:54 +00:00
2019-11-08 12:16:26 +00:00
2020-05-18 16:13:46 +01:00
2020-05-18 16:13:46 +01:00
2020-05-18 16:13:46 +01:00
2020-05-18 16:13:46 +01:00
2020-05-18 17:05:49 +01:00
2020-05-18 17:05:49 +01:00
2019-11-08 12:16:26 +00:00
2019-11-08 12:16:26 +00:00
2019-11-08 12:16:26 +00:00
2019-11-08 12:16:26 +00:00
2019-11-08 12:16:26 +00:00
2019-11-08 12:16:26 +00:00
2019-11-08 12:16:26 +00:00
2019-11-08 12:16:26 +00:00
2019-11-08 12:16:26 +00:00
2019-11-08 12:16:26 +00:00
2020-07-06 17:02:26 +01:00
2019-11-08 12:16:26 +00:00