Remove go1.9 specific code for windows (#5033)

Following fix https://go-review.googlesource.com/#/c/41834/ has
been merged upstream and released with go1.9.
This commit is contained in:
Harshavardhana
2017-10-13 03:01:15 -07:00
committed by Nitish Tiwari
parent ad53c5d859
commit 3d0dced23c
21 changed files with 52 additions and 610 deletions

View File

@@ -24,8 +24,6 @@ import (
"path/filepath"
"syscall"
"unsafe"
os2 "github.com/minio/minio/pkg/x/os"
)
var (
@@ -54,7 +52,7 @@ func lockedOpenFile(path string, flag int, perm os.FileMode, lockType uint32) (*
return nil, err
}
st, err := os2.Stat(path)
st, err := os.Stat(path)
if err != nil {
f.Close()
return nil, err