Skip to content

Commit

Permalink
Fix redundant err check (#8790)
Browse files Browse the repository at this point in the history
  • Loading branch information
terencechain authored Apr 20, 2021
1 parent ad269ee commit 70dc22a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tools/specs-checker/download.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,5 @@ func getAndSaveFile(specDocUrl, outFilePath string) error {
}

func prepareDir(dirPath string) error {
if err := os.MkdirAll(dirPath, os.ModePerm); err != nil {
return err
}
return nil
return os.MkdirAll(dirPath, os.ModePerm)
}

0 comments on commit 70dc22a

Please sign in to comment.