(fix) small code refactoring

pull/105/head
Ludovic Marcotte 2015-08-28 20:11:21 -04:00
parent 3fdabf8671
commit fb4889a15e
2 changed files with 3 additions and 6 deletions

View File

@ -883,7 +883,7 @@
data = [NSDictionary dictionaryWithObjectsAndKeys:
@"No UID specified", @"error", nil];
return [self responseWithStatus: 404 /* Not Found */
andString: [data jsonRepresentation]];
andString: [data jsonRepresentation]];
}
uids = [data objectForKey: @"uids"];

View File

@ -124,11 +124,8 @@
NSString *s;
s = [self mailAccounts];
response = [self responseWithStatus: 200];
[response setHeader: @"text/plain; charset=utf-8"
forKey: @"content-type"];
[response appendContentString: s];
response = [self responseWithStatus: 200
andString: s];
return response;
}