Skip to content

Commit 5fc627b

Browse files
committed
change task variable name
1 parent 8b7770f commit 5fc627b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Templates/ObjC/Requests/EntityCollectionRequest.m.tt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,13 @@ if (innerEntityType.Equals(propName))
117117

118118
- (<#=writer.GetStaticCodePrefix()#>URLSessionDataTask *)add<#=innerEntity.Name.ToUpperFirstChar()#>:(<#=innerEntityType#>*)<#=innerEntity.Name.ToLowerFirstChar()#> withCompletion:(<#=innerEntityType#>CompletionHandler)completionHandler
119119
{
120-
<#=writer.GetStaticCodePrefix()#>URLSessionDataTask *task = [self taskWithRequest:[self add<#=innerEntity.Name.ToUpperFirstChar()#>:<#=innerEntity.Name.ToLowerFirstChar()#>]
120+
<#=writer.GetStaticCodePrefix()#>URLSessionDataTask *sessionDataTask = [self taskWithRequest:[self add<#=innerEntity.Name.ToUpperFirstChar()#>:<#=innerEntity.Name.ToLowerFirstChar()#>]
121121
odObjectWithDictionary:^(NSDictionary *response){
122122
return [[<#=innerEntityType#> alloc] initWithDictionary:response];
123123
}
124124
completion:completionHandler];
125-
[task execute];
126-
return task;
125+
[sessionDataTask execute];
126+
return sessionDataTask;
127127
}
128128

129129
<#

0 commit comments

Comments
 (0)