From 774529a2a0931185941069ce1db4591592be0fc6 Mon Sep 17 00:00:00 2001 From: Ward Vandewege Date: Wed, 13 Apr 2022 15:09:36 -0400 Subject: [PATCH] 18995: remove useless if statement. Arvados-DCO-1.1-Signed-off-by: Ward Vandewege --- lib/config/load_test.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/config/load_test.go b/lib/config/load_test.go index 5270dcccce..2d87b906c9 100644 --- a/lib/config/load_test.go +++ b/lib/config/load_test.go @@ -338,11 +338,7 @@ func (s *LoadSuite) TestUnacceptableTokens(c *check.C) { } { c.Logf("trying bogus config: %s", trial.example) _, err := testLoader(c, "Clusters:\n zzzzz:\n "+trial.example, nil).Load() - if trial.short { - c.Check(err, check.ErrorMatches, `Clusters.zzzzz.`+trial.configPath+`: unacceptable characters in token.*`) - } else { - c.Check(err, check.ErrorMatches, `Clusters.zzzzz.`+trial.configPath+`: unacceptable characters in token.*`) - } + c.Check(err, check.ErrorMatches, `Clusters.zzzzz.`+trial.configPath+`: unacceptable characters in token.*`) } } -- 2.30.2