Skip to content

Commit 255998a

Browse files
Copilothannesa2
andcommitted
Fix missing closing braces in changeContentToCommit method
Co-authored-by: hannesa2 <[email protected]>
1 parent 21c71d7 commit 255998a

1 file changed

Lines changed: 18 additions & 17 deletions

File tree

‎Classes/Controllers/PBWebHistoryController.m‎

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -149,24 +149,25 @@ - (void)changeContentToCommit:(PBGitCommit *)commit
149149
}
150150

151151
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0), ^{
152-
NSDictionary *summary = loadCommitSummary(repo, queueCommit, ^BOOL {
153-
return gen != atomic_load(&self->_commitSummaryGeneration);
154-
});
155-
if (!summary) return;
156-
NSError *err = nil;
157-
NSString *summaryJSON =
158-
[[NSString alloc] initWithData:[NSJSONSerialization dataWithJSONObject:summary
159-
options:0
160-
error:&err]
161-
encoding:NSUTF8StringEncoding];
162-
if (!summaryJSON) {
163-
NSLog(@"Commit summary JSON error: %@", err);
164-
return;
165-
}
166-
dispatch_async(dispatch_get_main_queue(), ^{
167-
[self commitSummaryLoaded:summaryJSON forOID:commit.OID];
152+
NSDictionary *summary = loadCommitSummary(repo, queueCommit, ^BOOL {
153+
return gen != atomic_load(&self->_commitSummaryGeneration);
154+
});
155+
if (!summary) return;
156+
NSError *err = nil;
157+
NSString *summaryJSON =
158+
[[NSString alloc] initWithData:[NSJSONSerialization dataWithJSONObject:summary
159+
options:0
160+
error:&err]
161+
encoding:NSUTF8StringEncoding];
162+
if (!summaryJSON) {
163+
NSLog(@"Commit summary JSON error: %@", err);
164+
return;
165+
}
166+
dispatch_async(dispatch_get_main_queue(), ^{
167+
[self commitSummaryLoaded:summaryJSON forOID:commit.OID];
168+
});
168169
});
169-
});
170+
}];
170171
}
171172

172173
static NSDictionary *loadCommitSummary(GTRepository *repo, GTCommit *commit, BOOL (^isCanceled)(void))

0 commit comments

Comments
 (0)