1
0
mirror of https://github.com/alice-lg/alice-lg.git synced 2024-05-11 05:55:03 +00:00

updated comments

This commit is contained in:
Annika Hannig
2021-10-25 19:25:20 +02:00
parent 5a333ecfc8
commit f2f7ffc609

View File

@ -787,7 +787,7 @@ func getSources(config *ini.File) ([]*SourceConfig, error) {
return sources, nil
}
// Try to load the config file
// LoadConfig reads a configuration from a file.
func LoadConfig(file string) (*Config, error) {
// Try to get config file, fallback to alternatives
@ -843,7 +843,7 @@ func LoadConfig(file string) (*Config, error) {
return config, nil
}
// Get source instance from config
// GetInstance gets a source instance from config
func (cfg *SourceConfig) GetInstance() sources.Source {
if cfg.instance != nil {
return cfg.instance