From 0ef72dd5754fd37d12e67120ee4624454e507ea4 Mon Sep 17 00:00:00 2001 From: Robin Jarry Date: Sat, 11 Dec 2021 23:12:13 +0100 Subject: config: fix code formatting Tabs are required. Fixes: 175d0efeb22e ("binds: add account specific bindings") Signed-off-by: Robin Jarry --- config/config.go | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/config/config.go b/config/config.go index cf0ded6..0472daf 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) -- cgit 1.4.1-2-gfad0