]> Cypherpunks repositories - gostls13.git/commit
cmd/go/internal/str: simplify HasPathPrefix by epsilon
authorRuss Cox <rsc@golang.org>
Wed, 18 Jul 2018 20:20:19 +0000 (16:20 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 19 Jul 2018 05:28:16 +0000 (05:28 +0000)
commiteec9a895600891c4a05c85e0f41f65275eb356de
tree667723f219a23fee449099bafd535a872aed9a14
parent6140829edf611243a41393823217f604ca6d33a2
cmd/go/internal/str: simplify HasPathPrefix by epsilon

Pointed out in CL 122396.
An empty prefix has already been handled above.

Change-Id: Ib94df0a9c8c0517f932b90126232111caa9ad289
Reviewed-on: https://go-review.googlesource.com/124797
Reviewed-by: Bryan C. Mills <bcmills@google.com>
src/cmd/go/internal/str/path.go