From 5f5da19d45a2199db2995ba1220e07c815b3ec2e Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Mon, 14 May 2012 01:46:39 +1000 Subject: [PATCH] rename a function Change-Id: I328ed897f55a0bfcc5b4c806aac18966edb1c990 --- pkg/serverconfig/serverconfig.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkg/serverconfig/serverconfig.go b/pkg/serverconfig/serverconfig.go index 5022a4b8f..7fd01221b 100644 --- a/pkg/serverconfig/serverconfig.go +++ b/pkg/serverconfig/serverconfig.go @@ -312,7 +312,7 @@ func Load(filename string) (*Config, error) { return conf, nil } -func (config *Config) initAuth() error { +func (config *Config) checkValidAuth() error { authConfig := config.OptionalString("auth", "") _, err := auth.FromConfig(authConfig) return err @@ -328,8 +328,7 @@ func (config *Config) InstallHandlers(hi HandlerInstaller, baseURL string, conte outerr = fmt.Errorf("%v", err) }() - err := config.initAuth() - if err != nil { + if err := config.checkValidAuth(); err != nil { return fmt.Errorf("error while configuring auth: %v", err) } prefixes := config.RequiredObject("prefixes")