From bfacbfeb114d082aaea6fc2055e772798b9061be Mon Sep 17 00:00:00 2001 From: John Donaldson Date: Fri, 28 Oct 2022 12:46:47 -0700 Subject: [PATCH] Fixing scope of test variables --- cmd/mothd/state_filesystem_test.go | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/cmd/mothd/state_filesystem_test.go b/cmd/mothd/state_filesystem_test.go index b78dcdb..8dc108d 100644 --- a/cmd/mothd/state_filesystem_test.go +++ b/cmd/mothd/state_filesystem_test.go @@ -557,15 +557,13 @@ func TestStateTeamIDs(t *testing.T) { // Check if an ID exists in an empty list if teamIDExists, err := s.TeamIDExists(teamID1); err != nil { t.Errorf("Received unexpected error %s", err) - } - - if teamIDExists { - t.Errorf("Expected to receive false, since team ID list should be empty, but received true, instead") + + if teamIDExists { + t.Errorf("Expected to receive false, since team ID list should be empty, but received true, instead") + } } - if err != nil { - t.Errorf("") - } + // Add a team ID if err := s.AddTeamID(teamID1); err != nil {