Skip to content

Commit 17acb08

Browse files
committed
Fix bug in isValidRemoteName
According to the docs git_remote_is_valid_name returns either 1 (success) or 0.
1 parent 90f0185 commit 17acb08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ObjectiveGit/GTRemote.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ - (NSString *)description {
104104
+ (BOOL)isValidRemoteName:(NSString *)name {
105105
NSParameterAssert(name != nil);
106106

107-
return git_remote_is_valid_name(name.UTF8String) == GIT_OK;
107+
return git_remote_is_valid_name(name.UTF8String);
108108
}
109109

110110
#pragma mark Properties

0 commit comments

Comments
 (0)