From: Ward Vandewege Date: Wed, 13 Apr 2022 19:09:36 +0000 (-0400) Subject: 18995: remove useless if statement. X-Git-Tag: 2.5.0~204^2~6 X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/774529a2a0931185941069ce1db4591592be0fc6 18995: remove useless if statement. Arvados-DCO-1.1-Signed-off-by: Ward Vandewege --- 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.*`) } }