settings: Use pointer
This commit is contained in:
parent
dc64eb549f
commit
15afbb8b87
5 changed files with 13 additions and 13 deletions
|
|
@ -27,7 +27,7 @@ func touchStartedFile() {
|
|||
}
|
||||
}
|
||||
|
||||
func reloadSettings(config settings.FICSettings) {
|
||||
func reloadSettings(config *settings.FICSettings) {
|
||||
// Copy the new settings file for distribution
|
||||
if data, err := ioutil.ReadFile(path.Join(settings.SettingsDir, settings.SettingsFile)); err != nil {
|
||||
log.Println("Unable to read settings file:", err)
|
||||
|
|
|
|||
Reference in a new issue