aboutsummaryrefslogtreecommitdiffstats
path: root/config/config.go
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2021-12-11 23:12:13 +0100
committerRobin Jarry <robin@jarry.cc>2021-12-11 23:13:27 +0100
commit0ef72dd5754fd37d12e67120ee4624454e507ea4 (patch)
tree718f4a030e5bfd5a12c07dda0c1f8fc301c5c799 /config/config.go
parent15a4cc7d0a84870ba04307154f394f9bdc98fd31 (diff)
downloadaerc-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/config.go')
-rw-r--r--config/config.go22
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)