Commit 714ef5c
Fabrice Vaillant
Favor strings.Cut to strings.SplitN
It is more efficient since it does not allocate an array and just return
s if nothing found
For the same reason we don't need to use strings.Cut at all if empty1 parent 7aa50a4 commit 714ef5c
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1434 | 1434 | | |
1435 | 1435 | | |
1436 | 1436 | | |
1437 | | - | |
1438 | 1437 | | |
| 1438 | + | |
1439 | 1439 | | |
1440 | 1440 | | |
1441 | 1441 | | |
| |||
0 commit comments