Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request kubernetes#50223 from tcharding/kubectl-run-dup
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Remove duplicate code fixing empty name error **What this PR does / why we need it**: Removes two helper functions which have duplicate code; code can be safely added to the calling function. This does add an extra parameter to calls. Since the helpers are file local functions with only two call sites it is trivial to see that this PR maintains current logic. **Special notes for your reviewer**: The diff is a bit convoluted since this PR [re]moves lines in consecutive functions. **Release note**: ```release-note NONE ``` /sig cli /kind cleanup
- Loading branch information