config: fix code formatting

Tabs are required.

Fixes: 175d0efeb2 ("binds: add account specific bindings")
Signed-off-by: Robin Jarry <robin@jarry.cc>
This commit is contained in:
Robin Jarry 2021-12-11 23:12:13 +01:00
parent 15a4cc7d0a
commit 0ef72dd575

View file

@ -755,17 +755,17 @@ func (config *AercConfig) LoadBinds(binds *ini.File, baseName string, baseGroup
switch sectionName[len(baseName)+1 : index] {
case "account":
acctName := sectionName[index+1:]
valid := false
for _, acctConf := range config.Accounts {
matches := contextualBind.Regex.FindString(acctConf.Name)
if matches != "" {
valid = true
}
}
if !valid {
return fmt.Errorf("Invalid Account Name: %s", acctName)
}
acctName := sectionName[index+1:]
valid := false
for _, acctConf := range config.Accounts {
matches := contextualBind.Regex.FindString(acctConf.Name)
if matches != "" {
valid = true
}
}
if !valid {
return fmt.Errorf("Invalid Account Name: %s", acctName)
}
contextualBind.ContextType = BIND_CONTEXT_ACCOUNT
default:
return fmt.Errorf("Unknown Context Bind Section: %s", sectionName)