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
1 changed files with 11 additions and 11 deletions

View File

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