mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
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:
committed by
Nitish Tiwari
parent
ad53c5d859
commit
3d0dced23c
@@ -23,11 +23,11 @@ import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"runtime"
|
||||
"strings"
|
||||
|
||||
os2 "github.com/minio/minio/pkg/x/os"
|
||||
yaml "gopkg.in/yaml.v2"
|
||||
)
|
||||
|
||||
@@ -126,7 +126,7 @@ func saveFileConfig(filename string, v interface{}) error {
|
||||
// decoder format according to the filename extension. If no
|
||||
// extension is provided, json will be selected by default.
|
||||
func loadFileConfig(filename string, v interface{}) error {
|
||||
if _, err := os2.Stat(filename); err != nil {
|
||||
if _, err := os.Stat(filename); err != nil {
|
||||
return err
|
||||
}
|
||||
fileData, err := ioutil.ReadFile(filename)
|
||||
|
||||
Reference in New Issue
Block a user