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-01-29 14:46:07 -08:00
2017-01-05 14:14:13 -08:00
2017-02-04 00:11:30 -05:00
2017-02-04 00:11:29 -05:00
2017-02-06 09:19:46 +08:00
2017-01-26 19:59:24 -05:00
2017-01-26 19:59:24 -05:00
2017-02-04 08:38:19 -08:00
2017-01-31 15:00:23 -05:00
2017-02-03 15:28:42 -08:00
2017-01-25 08:29:48 -05:00
2017-02-06 22:32:01 -08:00
2017-02-06 22:32:01 -08:00
2017-02-08 00:49:46 -08:00
2017-02-06 22:32:01 -08:00
2016-10-19 08:53:26 +10:00
2017-02-06 22:32:01 -08:00
2017-02-06 22:32:01 -08:00
2017-01-25 08:29:48 -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
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-01-25 08:29:48 -05:00
2017-02-06 22:32:01 -08:00
2016-10-19 08:53:26 +10:00
2017-02-06 22:32:01 -08:00
2017-01-25 08:29:48 -05:00
2017-02-06 22:32:01 -08:00
2017-02-06 22:32:01 -08:00
2017-01-25 08:29:48 -05:00
2017-02-06 22:32:01 -08:00
2017-02-06 22:32:01 -08:00
2017-01-25 08:29:48 -05:00
2017-02-06 22:32:01 -08:00
2017-01-25 08:29:48 -05:00
2017-02-06 22:32:01 -08:00
2017-01-25 08:29:48 -05:00
2017-02-06 22:32:01 -08:00
2017-01-26 19:59:16 -05:00
2017-02-06 22:32:01 -08:00
2017-01-27 09:18:48 -05: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-01-31 19:14:13 -05:00
2017-02-06 22:32:01 -08:00
2017-02-04 00:11:29 -05:00
2017-02-08 00:49:46 -08:00
2017-01-25 08:29:48 -05: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-07 11:33:41 -08:00
2017-01-29 21:41:45 +01: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-01-25 08:29:48 -05:00
2017-02-06 22:32:01 -08:00
2017-02-06 22:32:01 -08:00
2017-01-27 14:58:52 -08:00
2017-02-06 22:32:01 -08:00
2017-01-25 08:29:48 -05:00
2017-02-08 07:59:10 -08:00
2017-02-06 22:32:01 -08:00
2017-01-26 19:59:16 -05:00
2017-02-06 22:32:01 -08:00
2016-10-19 08:53:26 +10: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-01-25 19:45:09 +01:00
2017-02-06 22:32:01 -08:00
2017-01-25 08:29:48 -05:00
2017-02-06 22:32:01 -08:00
2017-01-29 21:41:44 +01:00
2017-02-06 22:32:01 -08:00
2017-01-29 21:41:44 +01:00
2017-02-06 22:32:01 -08:00
2017-02-06 22:32:01 -08:00