From 00bef17738e80b5428955251a2127df8014bcec0 Mon Sep 17 00:00:00 2001 From: Abirdcfly Date: Wed, 10 Aug 2022 10:47:18 +0800 Subject: [PATCH] delete minor unreachable code caused by t.Fatal Signed-off-by: Abirdcfly --- internal/mempool/policy_test.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/internal/mempool/policy_test.go b/internal/mempool/policy_test.go index 7ef6829824..5c4001dace 100644 --- a/internal/mempool/policy_test.go +++ b/internal/mempool/policy_test.go @@ -196,7 +196,6 @@ func TestCheckPkScriptStandard(t *testing.T) { if err != nil { t.Fatalf("TestCheckPkScriptStandard test '%s' "+ "failed: %v", test.name, err) - continue } scriptType := stdscript.DetermineScriptType(0, script) got := checkPkScriptStandard(0, script, scriptType) @@ -205,7 +204,6 @@ func TestCheckPkScriptStandard(t *testing.T) { t.Fatalf("TestCheckPkScriptStandard test '%s' failed", test.name) - return } } } @@ -300,7 +298,6 @@ func TestDust(t *testing.T) { if res != test.isDust { t.Fatalf("Dust test '%s' failed: want %v got %v", test.name, test.isDust, res) - continue } } }