b73a51e396
yolo it
13 lines
170 B
Go
13 lines
170 B
Go
package main
|
|
|
|
import (
|
|
"os"
|
|
)
|
|
|
|
func removeFileIfExist(path string) error {
|
|
err := os.Remove(path)
|
|
if err != nil && !os.IsNotExist(err) {
|
|
return err
|
|
}
|
|
return nil
|
|
}
|