Skip to content

Commit a35564a

Browse files
lunnydelvh
andauthored
Update modules/setting/config_provider.go
Co-authored-by: delvh <[email protected]>
1 parent ca897f7 commit a35564a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/setting/config_provider.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ type ConfigProvider interface {
3636
type iniFileConfigProvider struct {
3737
*ini.File
3838
filepath string // the ini file path
39-
newFile bool // whether the file exists
40-
allowEmpty bool // whether allow empty
39+
newFile bool // whether the file has not existed previously
40+
allowEmpty bool // whether not finding configuration files is allowed (only true for the tests)
4141
}
4242

4343
// NewEmptyConfigProvider create a new empty config provider

0 commit comments

Comments
 (0)