aboutsummaryrefslogtreecommitdiff
path: root/internal/prefer_openssl
diff options
context:
space:
mode:
authorJakob Unterwurzacher2016-09-25 19:48:21 +0200
committerJakob Unterwurzacher2016-09-25 19:48:21 +0200
commit5f4b16c00f2475a8efd0ae0d4d4e26f92b563dc0 (patch)
tree5b9a65d94c3cc58c032e731ea4cb776947b30ebd /internal/prefer_openssl
parent166ba74a053898a52ff2e48125c1df97f35a85fd (diff)
Implement changes proposed by gosimple.
Also delete the unused "dirIVNameStruct", found by deadcode.
Diffstat (limited to 'internal/prefer_openssl')
-rw-r--r--internal/prefer_openssl/prefer_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/prefer_openssl/prefer_test.go b/internal/prefer_openssl/prefer_test.go
index a2ed737..289a0a9 100644
--- a/internal/prefer_openssl/prefer_test.go
+++ b/internal/prefer_openssl/prefer_test.go
@@ -10,14 +10,14 @@ func TestCurrentCPU(t *testing.T) {
// Has AES instructions
func TestXeonE312xx(t *testing.T) {
- if filePreferOpenSSL("cpuinfo.xeon_e312xx.txt") == true {
+ if filePreferOpenSSL("cpuinfo.xeon_e312xx.txt") {
t.Fail()
}
}
// Pentium G do not have AES instructions
func TestPentiumG630(t *testing.T) {
- if filePreferOpenSSL("cpuinfo.pentium_g630.txt") == false {
+ if !filePreferOpenSSL("cpuinfo.pentium_g630.txt") {
t.Fail()
}
}