mirror of
https://github.com/sot-tech/mochi.git
synced 2026-07-10 02:28:11 -07:00
Add man to exported functions/fields
This commit is contained in:
committed by
Lawrence, Rendall
parent
0a5ac35c4d
commit
360ac9d08d
@@ -70,12 +70,11 @@ func ParseConfigFile(path string) (*ConfigFile, error) {
|
||||
}
|
||||
|
||||
f, err := os.Open(os.ExpandEnv(path))
|
||||
if err != nil {
|
||||
return nil, err
|
||||
} else {
|
||||
if err == nil {
|
||||
defer f.Close()
|
||||
cfgFile := new(ConfigFile)
|
||||
err = yaml.NewDecoder(f).Decode(cfgFile)
|
||||
return cfgFile, err
|
||||
}
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user