Skip to content

Commit 9efa44e

Browse files
author
RadAzzouz
committed
💄
`![document isValid]` -> `!document.isValid`
1 parent a1c1599 commit 9efa44e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ios/RCTPSPDFKit/RCTPSPDFKitView.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ - (BOOL)addAnnotation:(id)jsonAnnotation {
190190
}
191191

192192
PSPDFDocument *document = self.pdfController.document;
193-
if (![document isValid]) {
193+
if (!document.isValid) {
194194
NSLog(@"Document is invalid.");
195195
return NO;
196196
}
@@ -211,7 +211,7 @@ - (BOOL)addAnnotation:(id)jsonAnnotation {
211211

212212
- (BOOL)removeAnnotationWithUUID:(NSString *)annotationUUID {
213213
PSPDFDocument *document = self.pdfController.document;
214-
if (![document isValid]) {
214+
if (!document.isValid) {
215215
NSLog(@"Document is invalid.");
216216
return NO;
217217
}
@@ -253,7 +253,7 @@ - (BOOL)addAnnotations:(id)jsonAnnotations {
253253

254254
PSPDFDataContainerProvider *dataContainerProvider = [[PSPDFDataContainerProvider alloc] initWithData:data];
255255
PSPDFDocument *document = self.pdfController.document;
256-
if (![document isValid]) {
256+
if (!document.isValid) {
257257
NSLog(@"Document is invalid.");
258258
return NO;
259259
}
@@ -277,7 +277,7 @@ - (BOOL)addAnnotations:(id)jsonAnnotations {
277277
}
278278

279279
PSPDFDocument *document = self.pdfController.document;
280-
if (![document isValid]) {
280+
if (!document.isValid) {
281281
NSLog(@"Document is invalid.");
282282
return nil;
283283
}

0 commit comments

Comments
 (0)