Code maintenance: Use Unset() option for params

This commit is contained in:
Quentin McGaw
2020-12-29 18:29:21 +00:00
parent a921f9848c
commit ef40f2f91b
4 changed files with 6 additions and 39 deletions
-4
View File
@@ -9,7 +9,6 @@ type OS interface {
MkdirAll(name string, perm FileMode) error
Remove(name string) error
Chown(name string, uid int, gid int) error
Unsetenv(key string) error
Stat(name string) (nativeos.FileInfo, error)
}
@@ -31,9 +30,6 @@ func (o *os) Remove(name string) error {
func (o *os) Chown(name string, uid, gid int) error {
return nativeos.Chown(name, uid, gid)
}
func (o *os) Unsetenv(key string) error {
return nativeos.Unsetenv(key)
}
func (o *os) Stat(name string) (nativeos.FileInfo, error) {
return nativeos.Stat(name)
}