olympics: simplify ReadDir error check.

This commit is contained in:
Arseny Balobanov 2020-03-13 00:06:24 +03:00
parent 3d1eb4d872
commit 3c9b875d53

View file

@ -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)
}
for _, f := range files {
if !f.IsDir() {