Skip to content

Commit 4d4aa62

Browse files
author
Josh Holtz
committed
Removd unneeded setID calls
1 parent 8f9b009 commit 4d4aa62

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

Project/JSONAPI/CommentResource.m

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,8 @@ + (JSONAPIResourceDescriptor*)descriptor {
2222
static dispatch_once_t onceToken;
2323
dispatch_once(&onceToken, ^{
2424
__descriptor = [[JSONAPIResourceDescriptor alloc] initWithClass:[self class] forLinkedType:@"comments"];
25-
26-
[__descriptor setIdProperty:@"ID"];
27-
2825
[__descriptor addProperty:@"text" withJsonName:@"body"];
29-
26+
3027
[__descriptor hasOne:[PeopleResource class] withName:@"author"];
3128
});
3229

Project/JSONAPI/PeopleResource.m

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@ + (JSONAPIResourceDescriptor*)descriptor {
1919
static dispatch_once_t onceToken;
2020
dispatch_once(&onceToken, ^{
2121
__descriptor = [[JSONAPIResourceDescriptor alloc] initWithClass:[self class] forLinkedType:@"people"];
22-
23-
[__descriptor setIdProperty:@"ID"];
24-
22+
2523
[__descriptor addProperty:@"firstName" withDescription:[[JSONAPIPropertyDescriptor alloc] initWithJsonName:@"first-name"]];
2624
[__descriptor addProperty:@"lastName" withJsonName:@"last-name"];
2725
[__descriptor addProperty:@"twitter"];

0 commit comments

Comments
 (0)