fix(redhat-oval): replace os.MkdirAll with AppFs.MkdirAll (#21)

This commit is contained in:
Teppei Fukuda 2019-11-13 12:44:21 +02:00 committed by GitHub
parent 99ce5d6c70
commit bd6da033c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -107,7 +107,7 @@ func (c Config) saveRHSAPerYear(dirName string, rhsaID string, data interface{})
}
yearDir := filepath.Join(c.VulnListDir, dirName, s[1])
if err := os.MkdirAll(yearDir, os.ModePerm); err != nil {
if err := c.AppFs.MkdirAll(yearDir, os.ModePerm); err != nil {
return xerrors.Errorf("failed to create a year dir: %w", err)
}