remove dead code for checking error nil#282
Conversation
|
We should look through git history to see what the reasoning is for this happening |
|
This looks like the offending commit: b22fc70#diff-908f4c077f45928d663a0b84f166e7bcR96 via git blame: https://github.com/spf13/pflag/blame/master/string_array.go#L36 |
|
doesn't look like there was much review for that PR: #216, so seems like a honest mistake + lack of review process. |
|
@yashbhutwala Ahh yes, I see. This looks like a mistake from a copy-pasta event. Unless you protest, I'd like to apply this on my fork later (or you can submit an equivalent PR). Thanks!! |
|
huh? why do you maintain your own fork? Is this project not community maintained? If not, maybe there should be a note in the top level README. @spf13? |
|
@yashbhutwala it is haphazardly maintained. I've tried to probe the maintainers on various issues and get varying levels of responses (you can look at my PR for a test that has been broken for 2+ years now). I'm just maintaining a fork now :) Edit: This is kind of the history of |
This MR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [github.com/spf13/pflag](https://github.com/spf13/pflag) | require | patch | `v1.0.5` -> `v1.0.6` | --- ### Release Notes <details> <summary>spf13/pflag (github.com/spf13/pflag)</summary> ### [`v1.0.6`](https://github.com/spf13/pflag/releases/tag/v1.0.6) [Compare Source](spf13/pflag@v1.0.5...v1.0.6) #### What's Changed - Add exported functions to preserve `pkg/flag` compatibility by [@​mckern](https://github.com/mckern) in spf13/pflag#220 - remove dead code for checking error nil by [@​yashbhutwala](https://github.com/yashbhutwala) in spf13/pflag#282 - Add IPNetSlice and unit tests by [@​rpothier](https://github.com/rpothier) in spf13/pflag#170 - allow for blank ip addresses by [@​duhruh](https://github.com/duhruh) in spf13/pflag#316 - add github actions by [@​sagikazarmark](https://github.com/sagikazarmark) in spf13/pflag#419 #### New Contributors - [@​mckern](https://github.com/mckern) made their first contribution in spf13/pflag#220 - [@​yashbhutwala](https://github.com/yashbhutwala) made their first contribution in spf13/pflag#282 - [@​rpothier](https://github.com/rpothier) made their first contribution in spf13/pflag#170 - [@​duhruh](https://github.com/duhruh) made their first contribution in spf13/pflag#316 - [@​sagikazarmark](https://github.com/sagikazarmark) made their first contribution in spf13/pflag#419 **Full Changelog**: spf13/pflag@v1.0.5...v1.0.6 </details> --- - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box --- <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xMDYuMCIsInVwZGF0ZWRJblZlciI6IjM5LjEwNi4wIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbXX0=--> See merge request alpine/infra/build-server-status!19
Here is the previous dead code: