diff options
| author | Gabriel Aszalos <gabriel.aszalos@gmail.com> | 2017-09-25 13:01:36 +0200 |
|---|---|---|
| committer | Ian Lance Taylor <iant@golang.org> | 2017-09-25 18:05:01 +0000 |
| commit | b71f39612adb671c176586cd9b0018eb3c716f3c (patch) | |
| tree | ff1ff6a3be6ba81da1731bc72f7741f9379980e9 /src/path/filepath | |
| parent | f22ba1f24786be600bfa3686a7ce5a318a96b9c9 (diff) | |
| download | go-b71f39612adb671c176586cd9b0018eb3c716f3c.tar.xz | |
bytes: improve readability of IndexAny and LastIndexAny functions
This change removes the check of len(chars) > 0 inside the Index and
IndexAny functions which was redundant.
Change-Id: Ic4bf8b8a37d7f040d3ebd81b4fc45fcb386b639a
Reviewed-on: https://go-review.googlesource.com/65851
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/path/filepath')
0 files changed, 0 insertions, 0 deletions
