Skip to content

Commit f2b2479

Browse files
committed
Fix podspec lint errors
1 parent 4df1805 commit f2b2479

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

Lela/KIFUITestActor+Lela.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// Copyright (c) 2013 Brian Nickel. All rights reserved.
77
//
88

9-
#import <KIFUITestActor.h>
9+
#import <KIF/KIFUITestActor.h>
1010

1111
extern NSString * const LECompareOptionThresholdPixels;
1212

Lela/KIFUITestActor+Lela.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//
88

99
#import "KIFUITestActor+Lela.h"
10-
#import <NSError-KIFAdditions.h>
10+
#import <KIF/NSError-KIFAdditions.h>
1111
#import "Lela.h"
1212
#import <XCTest/XCTest.h>
1313

Lela/Lela.mm

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -90,15 +90,9 @@ + (UIImage *)expectedImageWithName:(NSString *)name
9090
+ (UIImage *)captureScreenshot
9191
{
9292
// Create a graphics context with the target size
93-
// On iOS 4 and later, use UIGraphicsBeginImageContextWithOptions to take the scale into consideration
94-
// On iOS prior to 4, fall back to use UIGraphicsBeginImageContext
9593
CGRect imageRect = [self.class currentScreenBoundsDependOnOrientation];
9694
CGSize imageSize = imageRect.size;
97-
if (NULL != &UIGraphicsBeginImageContextWithOptions)
98-
UIGraphicsBeginImageContextWithOptions(imageSize, NO, 0);
99-
else
100-
UIGraphicsBeginImageContext(imageSize);
101-
95+
UIGraphicsBeginImageContextWithOptions(imageSize, NO, 0);
10296
CGContextRef context = UIGraphicsGetCurrentContext();
10397

10498
// Iterate over every window from back to front

0 commit comments

Comments
 (0)