Files
kubernetes/pkg/kubectl
Kubernetes Submit Queue 82869c59ab Merge pull request #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
2017-10-11 03:14:33 -07:00
..
2017-10-02 14:39:07 -07:00
2017-10-03 09:48:36 -07:00
2017-08-31 23:31:12 -07:00
2017-08-31 19:11:01 -04:00
2017-07-23 02:12:53 +08:00
2017-08-09 10:37:03 +08:00