From 7db1c3b1a98089d0071c84f646ff5c96aad43682 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Mon, 7 May 2018 12:00:10 +0200 Subject: [PATCH] cpu: use t.Fatal instead of t.Fatalf The messages contain no format string, so there is no need to use t.Fatalf. Change-Id: I29098c04797f919784b732af84a63fbaed671558 Reviewed-on: https://go-review.googlesource.com/111776 Run-TryBot: Tobias Klauser TryBot-Result: Gobot Gobot Reviewed-by: Brad Fitzpatrick --- cpu/cpu_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpu/cpu_test.go b/cpu/cpu_test.go index ad29cef9..baf4b87b 100644 --- a/cpu/cpu_test.go +++ b/cpu/cpu_test.go @@ -14,7 +14,7 @@ import ( func TestAMD64minimalFeatures(t *testing.T) { if runtime.GOARCH == "amd64" { if !cpu.X86.HasSSE2 { - t.Fatalf("HasSSE2 expected true, got false") + t.Fatal("HasSSE2 expected true, got false") } } } @@ -22,7 +22,7 @@ func TestAMD64minimalFeatures(t *testing.T) { func TestAVX2hasAVX(t *testing.T) { if runtime.GOARCH == "amd64" { if cpu.X86.HasAVX2 && !cpu.X86.HasAVX { - t.Fatalf("HasAVX expected true, got false") + t.Fatal("HasAVX expected true, got false") } } }