1
0
mirror of https://github.com/securego/gosec.git synced 2025-07-03 00:27:05 +02:00

Fix some gas warnings

This commit is contained in:
Cosmin Cojocar
2018-02-07 14:07:24 +01:00
parent 8b87505d97
commit c2c21553a3
2 changed files with 12 additions and 5 deletions

View File

@ -128,6 +128,7 @@ func (p *TestPackage) CreateContext(filename string) *gas.Context {
// Close will delete the package and all files in that directory
func (p *TestPackage) Close() {
if p.ondisk {
os.RemoveAll(p.Path)
err := os.RemoveAll(p.Path)
log.Println(err)
}
}