M. J. Fromberger
8f06e0c9e7
cleanup: remove redundant error plumbing (#6778)
This is a mostly-automated fixup using Comby (https://comby.dev) to remove
lexically-obvious redundant error checks. No functional changes are intended.
To reproduce the core change:
# Collapse redundant error check conditionals
% comby -in-place 'if err != nil {
return err
}
return nil' 'return err' .go
# Fold out unnecessary error temporaries
% comby -in-place ':[spc~^\s*]err :[~:?]= :[any]
return err' ':[spc]return :[any]' .go
Fixes #6479 and related cases.
2021-07-28 15:38:46 -04:00
..
2021-06-16 17:13:14 +02:00
2020-05-11 13:42:19 +00:00
2020-07-22 10:12:37 +04:00
2021-06-17 16:02:31 -04:00
2021-06-17 16:02:31 -04:00
2020-10-28 15:16:38 +00:00
2020-10-01 14:46:21 +00:00
2021-06-28 13:50:25 +00:00
2021-06-26 16:53:30 +00:00
2021-03-16 14:41:03 +00:00
2021-03-16 14:41:03 +00:00
2020-11-10 11:10:12 +00:00
2021-05-25 16:25:31 +00:00
2020-11-10 11:10:12 +00:00
2021-07-28 15:38:46 -04:00
2021-03-16 14:41:03 +00:00
2021-05-25 16:25:31 +00:00
2020-05-12 03:35:47 +00:00
2020-11-16 18:16:10 +00:00
2020-06-03 05:46:29 +00:00
2021-02-11 18:59:18 +01:00
2020-05-12 03:35:47 +00:00
2020-05-12 03:35:47 +00:00