diff --git a/SoObjects/SOGo/SOGoAuthenticator.m b/SoObjects/SOGo/SOGoAuthenticator.m index 0c8d5c0a8..fa7cad377 100644 --- a/SoObjects/SOGo/SOGoAuthenticator.m +++ b/SoObjects/SOGo/SOGoAuthenticator.m @@ -47,13 +47,11 @@ - (id) init { - NSUserDefaults *ud; - if ((self = [super init])) { - ud = [NSUserDefaults standardUserDefaults]; - - authMethod = [[ud stringForKey:@"AuthentificationMethod"] retain]; + authMethod = [[NSUserDefaults standardUserDefaults] + stringForKey: @"AuthentificationMethod"]; + [authMethod retain]; } return self; @@ -90,7 +88,7 @@ NSArray *creds; password = nil; - auth = [[context request] headerForKey:@"authorization"]; + auth = [[context request] headerForKey: @"authorization"]; if (auth) { creds = [self parseCredentials: auth];