Compare commits
No commits in common. "v3" and "v3.8.9" have entirely different histories.
2
file.go
2
file.go
@ -90,7 +90,7 @@ func (c *fileConfig) Load(ctx context.Context, opts ...config.LoadOption) error
|
|||||||
var fp io.Reader
|
var fp io.Reader
|
||||||
var err error
|
var err error
|
||||||
|
|
||||||
if path != "" {
|
if c.path != "" {
|
||||||
fp, err = os.OpenFile(path, os.O_RDONLY, os.FileMode(0o400))
|
fp, err = os.OpenFile(path, os.O_RDONLY, os.FileMode(0o400))
|
||||||
} else if c.reader != nil {
|
} else if c.reader != nil {
|
||||||
fp = reader
|
fp = reader
|
||||||
|
Loading…
Reference in New Issue
Block a user