diff options
author | Robin Jarry <robin@jarry.cc> | 2021-12-11 23:12:13 +0100 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2021-12-11 23:13:27 +0100 |
commit | 0ef72dd5754fd37d12e67120ee4624454e507ea4 (patch) | |
tree | 718f4a030e5bfd5a12c07dda0c1f8fc301c5c799 /config | |
parent | 15a4cc7d0a84870ba04307154f394f9bdc98fd31 (diff) | |
download | aerc-0ef72dd5754fd37d12e67120ee4624454e507ea4.tar.gz |
config: fix code formatting
Tabs are required.
Fixes: 175d0efeb22e ("binds: add account specific bindings")
Signed-off-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'config')
-rw-r--r-- | config/config.go | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/config/config.go b/config/config.go index cf0ded65..0472daff 100644 --- a/config/config.go +++ b/config/config.go @@ -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) |