8000 Switch to the modern object-wrap syntax · libgit2/objective-git@e03bee9 · GitHub
[go: up one dir, main page]

Skip to content

Commit e03bee9

Browse files
committed
Switch to the modern object-wrap syntax
1 parent dea9507 commit e03bee9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ObjectiveGit/GTCheckoutOptions.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ - (instancetype)init {
6363
static void GTCheckoutProgressCallback(const char *path, size_t completedSteps, size_t totalSteps, void *payload) {
6464
if (payload == NULL) return;
6565
void (^block)(NSString *, NSUInteger, NSUInteger) = (__bridge id)payload;
66-
NSString *nsPath = (path != NULL ? [NSString stringWithUTF8String:path] : nil);
66+
NSString *nsPath = (path != NULL ? @(path) : nil);
6767
block(nsPath, completedSteps, totalSteps);
6868
}
6969

0 commit comments

Comments
 (0)
0