1
0
mirror of https://github.com/golang/go synced 2024-11-12 13:00:57 -07:00
go/src/path
Daniel Martí eb2dc3d3d0 all: remove strings.Contains check around Replace
It doesn't change the outcome. It might have been useful at some point
to avoid Replace from doing work or allocating. However, nowadays the
func returns early without doing any work if Count returns 0.

Change-Id: Id69dc74042a6e39672b405016484db8b50f43d58
Reviewed-on: https://go-review.googlesource.com/62991
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Dave Cheney <dave@cheney.net>
2017-09-12 08:58:28 +00:00
..
filepath all: remove strings.Contains check around Replace 2017-09-12 08:58:28 +00:00
example_test.go path: add path.Dir example with trailing slash 2017-09-08 10:59:58 +00:00
match_test.go
match.go
path_test.go
path.go path, path/filepath: clarify and cross-reference packages 2017-06-14 02:54:44 +00:00