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:
@ -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
|
||||
|
Reference in New Issue
Block a user