Skip to content

Commit 4f363d8

Browse files
committed
Merge pull request #468 from libgit2/adjust-oid-nullability
Adjust GTOID nullability
2 parents ce44560 + 6e26104 commit 4f363d8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ObjectiveGit/GTOID.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ NS_ASSUME_NONNULL_BEGIN
1616
@interface GTOID : NSObject <NSCopying>
1717

1818
/// The SHA pointed to by the OID.
19-
@property (nonatomic, readonly, copy, nullable) NSString *SHA;
19+
@property (nonatomic, readonly, copy) NSString *SHA;
2020

2121
/// Is the OID all zero? This usually indicates that the object has not been
2222
/// inserted into the ODB yet.
@@ -27,7 +27,7 @@ NS_ASSUME_NONNULL_BEGIN
2727
/// git_oid - The underlying git_oid. Cannot be NULL.
2828
///
2929
/// Returns the initialized receiver.
30-
- (nullable instancetype)initWithGitOid:(const git_oid *)git_oid NS_DESIGNATED_INITIALIZER;
30+
- (instancetype)initWithGitOid:(const git_oid *)git_oid NS_DESIGNATED_INITIALIZER;
3131

3232
/// Initializes the receiver by converting the given SHA to an OID.
3333
///
@@ -62,7 +62,7 @@ NS_ASSUME_NONNULL_BEGIN
6262
- (nullable instancetype)initWithSHACString:(const char *)string error:(NSError **)error NS_DESIGNATED_INITIALIZER;
6363

6464
/// Creates a new instance with the given git_oid using initWithGitOid:
65-
+ (nullable instancetype)oidWithGitOid:(const git_oid *)git_oid;
65+
+ (instancetype)oidWithGitOid:(const git_oid *)git_oid;
6666

6767
/// Creates a new instance from the given SHA string using initWithSHAString:
6868
+ (nullable instancetype)oidWithSHA:(NSString *)SHA;

0 commit comments

Comments
 (0)