]> Cypherpunks repositories - gostls13.git/commit
crypto/x509: remove redundant check for nil in tests
authorMarat Khabibullin <marat.khabibullin@jetbrains.com>
Wed, 13 Feb 2019 19:18:25 +0000 (19:18 +0000)
committerDaniel Martí <mvdan@mvdan.cc>
Tue, 26 Feb 2019 18:48:34 +0000 (18:48 +0000)
commit576a3c61d9a0960565e068732c26f8fa96314f7a
treec588590f585971b96665ee08a697940e0474a8f3
parent6d781decad8cde821245d03189a1f87021d6671c
crypto/x509: remove redundant check for nil in tests

Comparing err variable to be not nil is redundant in this case.
The code above ensures that it is always not nil.

Updates #30208

Change-Id: I0a41601273de36a05d22270a743c0bdedeb1d0bf
GitHub-Last-Rev: 372e0fd48f90f33e266fbcdf2ccf87b9f1311c4f
GitHub-Pull-Request: golang/go#30213
Reviewed-on: https://go-review.googlesource.com/c/162439
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/crypto/x509/name_constraints_test.go