fix issue in resource searching for package gcfg

This commit is contained in:
John Guo
2021-01-08 00:39:52 +08:00
parent 788ade2db0
commit c7ce8cf943

View File

@ -283,6 +283,10 @@ func (c *Config) FilePath(file ...string) (path string) {
}
})
}
// Already found?
if path != "" {
return
}
// Searching the file system.
c.paths.RLockFunc(func(array []string) {
for _, prefix := range array {