olympics: simplify ReadDir error check.
This commit is contained in:
parent
3d1eb4d872
commit
3c9b875d53
1 changed files with 1 additions and 3 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue