Improve nullability annotations.

This commit is contained in:
Damiano Galassi committed 2019-03-11 17:42:19 +01:00
1 parent bb1c13f8ab
commit 30978c088a
3 files changed
+11 -5

No files matched your search

+6 -2
View File
@@ -52,12 +52,16 @@
return self;
}
- (instancetype)initWithURL:(NSURL *)URL;
- (nullable instancetype)initWithURL:(NSURL *)URL;
{
self = [self init];
if (self) {
MP42XMLReader *xmlReader = [[MP42XMLReader alloc] initWithURL:URL error:NULL];
[self mergeMetadata:[xmlReader mMetadata]];
if (xmlReader) {
[self mergeMetadata:[xmlReader mMetadata]];
} else {
return nil;
}
}
return self;