From 40c78a20646c4fcef780c0e38d5197fe7e1740c9 Mon Sep 17 00:00:00 2001 From: Tim Vaillancourt Date: Thu, 3 Oct 2024 01:20:25 +0200 Subject: [PATCH] remove `if` Signed-off-by: Tim Vaillancourt --- go/vt/vtctl/reparentutil/planned_reparenter_flaky_test.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/go/vt/vtctl/reparentutil/planned_reparenter_flaky_test.go b/go/vt/vtctl/reparentutil/planned_reparenter_flaky_test.go index 0194c29277f..8e2ee8f9df7 100644 --- a/go/vt/vtctl/reparentutil/planned_reparenter_flaky_test.go +++ b/go/vt/vtctl/reparentutil/planned_reparenter_flaky_test.go @@ -3395,9 +3395,7 @@ func TestPlannedReparenter_reparentShardLocked(t *testing.T) { err := pr.reparentShardLocked(ctx, tt.ev, tt.keyspace, tt.shard, tt.opts) if tt.shouldErr { assert.Error(t, err) - if tt.errShouldContain != "" { - assert.ErrorContains(t, err, tt.errShouldContain) - } + assert.ErrorContains(t, err, tt.errShouldContain) return }