diff --git a/olympics/main_test.go b/olympics/main_test.go index b3360ea..efeec19 100644 --- a/olympics/main_test.go +++ b/olympics/main_test.go @@ -72,9 +72,7 @@ func TestServer_valid(t *testing.T) { t.Run(e, func(t *testing.T) { testDir := path.Join("./testdata", "tests", e) files, err := ioutil.ReadDir(testDir) - if err != nil { - require.NoError(t, err) - } + require.NoError(t, err) for _, f := range files { if !f.IsDir() {