Skip to content
This repository has been archived by the owner on Nov 7, 2023. It is now read-only.

Commit

Permalink
fix swift 4.1 warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
agrinman committed Apr 5, 2018
1 parent 58acd56 commit 63dc67b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions Krypton/SQS.swift
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,7 @@ class SQSManager:TransportMedium {
log("error recieving: \(e)", LogType.error)
completion?(false, e)
return
}

completion?(true, NoMessageError())
}
}

}
Expand Down
2 changes: 1 addition & 1 deletion Lib/RSBarCodes/RSCodeReaderViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ open class RSCodeReaderViewController: UIViewController, AVCaptureMetadataOutput
public func metadataOutput(_ output: AVCaptureMetadataOutput, didOutput metadataObjects: [AVMetadataObject], from connection: AVCaptureConnection) {
var barcodeObjects : Array<AVMetadataMachineReadableCodeObject> = []
var cornersArray : Array<[AnyObject]> = []
for metadataObject : AnyObject in metadataObjects as [AnyObject]! {
for metadataObject : AnyObject in metadataObjects as [AnyObject] {
if let videoPreviewLayer = self.videoPreviewLayer {
let transformedMetadataObject = videoPreviewLayer.transformedMetadataObject(for: metadataObject as! AVMetadataObject)
if ((transformedMetadataObject?.isKind(of: AVMetadataMachineReadableCodeObject.self)) != nil) {
Expand Down

0 comments on commit 63dc67b

Please sign in to comment.