Compare commits

..

1 Commits
v3.8.9 ... v3

Author SHA1 Message Date
d52e22c187 fixup load
Some checks failed
codeql / analyze (go) (push) Failing after 45s
build / test (push) Failing after 4m55s
build / lint (push) Successful in 9m31s
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2024-11-19 20:37:58 +03:00

View File

@ -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 c.path != "" { if 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