Skip to content

Commit 57ec031

Browse files
committed
Fix lint warnings.
1 parent 088163d commit 57ec031

7 files changed

+6
-3
lines changed

.swift-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2.3

Pod/Assets/[email protected]

100755100644
1.15 KB
Loading

Pod/Assets/video.png

100755100644
454 Bytes
Loading

Pod/Assets/[email protected]

100755100644
695 Bytes
Loading

Pod/Classes/WPAssetViewController.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ - (void)viewDidLoad
2222
[super viewDidLoad];
2323

2424
self.view.backgroundColor = [UIColor blackColor];
25-
UILayoutGuide *margins = self.view.layoutMarginsGuide;
2625

2726
[self.view addSubview:self.imageView];
2827
self.imageView.translatesAutoresizingMaskIntoConstraints = NO;
@@ -105,6 +104,9 @@ - (void)showAsset
105104
case WPMediaTypeVideo:
106105
[self showVideoAsset];
107106
break;
107+
default:
108+
return;
109+
break;
108110
}
109111
}
110112

Pod/Classes/WPMediaCollectionViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ - (UICollectionReusableView *)collectionView:(UICollectionView *)collectionView
441441
return self.captureCell;
442442
}
443443

444-
return nil;
444+
return [UICollectionReusableView new];
445445
}
446446

447447
- (void)showCapture {

Pod/Classes/WPMediaPickerResources.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ + (NSBundle *)resourceBundle
1919
+ (UIImage *)imageNamed:(NSString *)imageName withExtension:(NSString *)extension
2020
{
2121
int scale = [[UIScreen mainScreen] scale];
22-
NSString *scaleAdjustedImageName = [imageName copy];
22+
NSString *scaleAdjustedImageName;
2323
UIImage *image = nil;
2424
do {
2525
if (scale > 1) {

0 commit comments

Comments
 (0)