Skip to content

Commit 8c97bfb

Browse files
committed
Merge pull request #577 from ParsePlatform/nlutsenko.nullability.errors
Fix nullability annotations in PFErrorUtilities.
2 parents 82d214f + 5e7ac23 commit 8c97bfb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Parse/Internal/PFErrorUtilities.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ NS_ASSUME_NONNULL_BEGIN
2222
@param code Parse Error Code
2323
@param message Error description
2424
25-
@return Instance of `NSError` or `nil`.
25+
@return `NSError` instance.
2626
*/
27-
+ (nullable NSError *)errorWithCode:(NSInteger)code message:(NSString *)message;
28-
+ (nullable NSError *)errorWithCode:(NSInteger)code message:(NSString *)message shouldLog:(BOOL)shouldLog;
27+
+ (NSError *)errorWithCode:(NSInteger)code message:(NSString *)message;
28+
+ (NSError *)errorWithCode:(NSInteger)code message:(NSString *)message shouldLog:(BOOL)shouldLog;
2929

3030
/*!
3131
Construct an error object from a result dictionary the API returned.
@@ -35,10 +35,10 @@ NS_ASSUME_NONNULL_BEGIN
3535
3636
@param result Network command result.
3737
38-
@return Instance of `NSError` or `nil`.
38+
@return `NSError` instance.
3939
*/
40-
+ (nullable NSError *)errorFromResult:(NSDictionary *)result;
41-
+ (nullable NSError *)errorFromResult:(NSDictionary *)result shouldLog:(BOOL)shouldLog;
40+
+ (NSError *)errorFromResult:(NSDictionary *)result;
41+
+ (NSError *)errorFromResult:(NSDictionary *)result shouldLog:(BOOL)shouldLog;
4242

4343
@end
4444

0 commit comments

Comments
 (0)