Files
kubernetes/pkg/kubectl/cmd
Kubernetes Submit Queue 4166c0e4a0 Merge pull request #38683 from bruceauyeung/k8s-branch-fix-possible-nil-error
Automatic merge from submit-queue

avoid repeated length calculation and some other code improvements

**What this PR does / why we need it**:
1. in function `ParsePairs`,  calculating `invalidBuf`'s length over and over again brings performance penalty. a `invalidBufNonEmpty` bool value can fix this.
2. pairArg is not a string template and also there is no other arguments for `fmt.Sprintf`, so i remove `fmt.Sprintf`
3. in function `DumpReaderToFile`, we must check nil error first before defer statement, otherwise there maybe a potential nil error on `f.Close()`
4. add nil checks into `GetWideFlag` function
5. some other minor code improvements for better readability.


Signed-off-by: bruceauyeung <ouyang.qinhua@zte.com.cn>
2017-02-08 09:49:10 -08:00
..
2017-01-29 21:41:45 +01:00
2017-01-17 08:32:05 -05:00
2017-02-04 00:11:30 -05:00
2017-01-26 19:59:24 -05:00
2017-01-31 15:00:23 -05:00
2017-02-06 22:32:01 -08:00
2017-02-06 22:32:01 -08:00
2017-02-06 22:32:01 -08:00
2017-02-06 22:32:01 -08:00
2017-02-06 22:32:01 -08:00
2016-10-29 20:24:54 -07:00
2017-02-06 22:32:01 -08:00
2017-02-06 22:32:01 -08:00
2017-02-06 22:32:01 -08:00
2017-02-06 22:32:01 -08:00
2017-02-06 22:32:01 -08:00
2017-01-31 19:14:13 -05:00
2017-02-06 22:32:01 -08:00
2017-02-06 22:32:01 -08:00
2017-02-06 22:32:01 -08:00
2017-02-06 22:32:01 -08:00
2017-02-06 22:32:01 -08:00
2017-01-26 19:59:25 -05:00
2017-02-06 22:32:01 -08:00
2017-02-06 22:32:01 -08:00
2017-02-06 22:32:01 -08:00
2017-02-06 22:32:01 -08:00
2017-02-06 22:32:01 -08:00
2017-02-06 22:32:01 -08:00
2017-01-30 12:46:59 -05:00
2017-02-06 22:32:01 -08:00
2017-02-06 22:32:01 -08:00
2017-02-06 22:32:01 -08:00
2017-02-06 22:32:01 -08:00
2017-02-06 22:32:01 -08:00
2017-02-06 22:32:01 -08:00
2017-02-06 22:32:01 -08:00
2017-02-06 22:32:01 -08:00