From d52e22c187cfd6f589102edf63a27020852b58f2 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Tue, 19 Nov 2024 20:37:58 +0300 Subject: [PATCH] fixup load Signed-off-by: Vasiliy Tolstov --- file.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/file.go b/file.go index 79d5fb0..8b45618 100644 --- a/file.go +++ b/file.go @@ -90,7 +90,7 @@ func (c *fileConfig) Load(ctx context.Context, opts ...config.LoadOption) error var fp io.Reader var err error - if c.path != "" { + if path != "" { fp, err = os.OpenFile(path, os.O_RDONLY, os.FileMode(0o400)) } else if c.reader != nil { fp = reader