(fix) small code refactoring
This commit is contained in:
parent
3fdabf8671
commit
fb4889a15e
|
@ -883,7 +883,7 @@
|
||||||
data = [NSDictionary dictionaryWithObjectsAndKeys:
|
data = [NSDictionary dictionaryWithObjectsAndKeys:
|
||||||
@"No UID specified", @"error", nil];
|
@"No UID specified", @"error", nil];
|
||||||
return [self responseWithStatus: 404 /* Not Found */
|
return [self responseWithStatus: 404 /* Not Found */
|
||||||
andString: [data jsonRepresentation]];
|
andString: [data jsonRepresentation]];
|
||||||
}
|
}
|
||||||
|
|
||||||
uids = [data objectForKey: @"uids"];
|
uids = [data objectForKey: @"uids"];
|
||||||
|
|
|
@ -124,11 +124,8 @@
|
||||||
NSString *s;
|
NSString *s;
|
||||||
|
|
||||||
s = [self mailAccounts];
|
s = [self mailAccounts];
|
||||||
response = [self responseWithStatus: 200];
|
response = [self responseWithStatus: 200
|
||||||
|
andString: s];
|
||||||
[response setHeader: @"text/plain; charset=utf-8"
|
|
||||||
forKey: @"content-type"];
|
|
||||||
[response appendContentString: s];
|
|
||||||
|
|
||||||
return response;
|
return response;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue