From 5f4b16c00f2475a8efd0ae0d4d4e26f92b563dc0 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sun, 25 Sep 2016 19:48:21 +0200 Subject: Implement changes proposed by gosimple. Also delete the unused "dirIVNameStruct", found by deadcode. --- internal/prefer_openssl/prefer_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/prefer_openssl/prefer_test.go') 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() } } -- cgit v1.2.3