]> Cypherpunks repositories - gostls13.git/commit
errors: remove useless condition checking in Is
authorLE Manh Cuong <cuong.manhle.vn@gmail.com>
Fri, 10 May 2019 08:32:24 +0000 (15:32 +0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 13 May 2019 13:54:54 +0000 (13:54 +0000)
commitc583104ee6331a6d006b493e85e0881d35164c93
tree5aa558085d55bbcf2c3d39e5b7e6b54e13fc8fa9
parentafd79150d99abe06bd56870f146842f77f279d6d
errors: remove useless condition checking in Is

golang.org/cl/175260 fixed Is panics if target is uncomparable. It did
add an useless condition checking whether target is comparable. Just
remove that condition.

Change-Id: I0a317056479638d209b0a0cbc7010c153558c087
Reviewed-on: https://go-review.googlesource.com/c/go/+/176497
Reviewed-by: Joan Lopez de la Franca Beltran <joanjan14@gmail.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/errors/wrap.go