Skip to content

Commit

Permalink
Fix lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
basememara committed Oct 28, 2018
1 parent 27368e4 commit 8dbac64
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion WeScan/Extensions/CGPoint+Utils.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ extension CGPoint {
/// - point: The second point to compare this instance with.
/// - Returns: True if the given `CGPoint` is within the given distance of this instance of `CGPoint`.
func isWithin(delta: CGFloat, ofPoint point: CGPoint) -> Bool {
return (fabs(x - point.x) <= delta) && (fabs(y - point.y) <= delta)
return (abs(x - point.x) <= delta) && (abs(y - point.y) <= delta)
}

/// Returns the same `CGPoint` in the cartesian coordinate system.
Expand Down
2 changes: 1 addition & 1 deletion WeScan/Scan/CaptureSessionManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ extension CaptureSessionManager: AVCapturePhotoCaptureDelegate {
}

/// Data structure representing the result of the detection of a quadrilateral.
fileprivate struct RectangleDetectorResult {
private struct RectangleDetectorResult {

/// The detected quadrilateral.
let rectangle: CIRectangleFeature
Expand Down
1 change: 1 addition & 0 deletions WeScanTests/QuadrilateralViewTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ final class QuadrilateralViewTests: XCTestCase {
let vc = UIViewController()

override func setUp() {
super.setUp()
vc.loadView()
}

Expand Down

0 comments on commit 8dbac64

Please sign in to comment.