Skip to content

Commit

Permalink
Fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Arclite committed Jun 19, 2024
1 parent 4398e3d commit 28ea6f5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,3 @@ public struct EmotionalSupportVariable {
public let thisGuyHeadBang: Double
}
// thank you for your support for this channel @KaenAitch

13 changes: 7 additions & 6 deletions Modules/Capabilities/Geometry/Tests/Asserts.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
import Geometry
import XCTest

func XCTAssertEqual(_ lhs: Shape, _ rhs: Shape, accuracy: Double) {
for point in lhs.inverseTranslateRotateTransform {
if !rhs.inverseTranslateRotateTransform.contains(where: { abs($0.x - point.x) <= accuracy && abs($0.y - point.y) <= accuracy }) {
XCTFail("XCTAssertEqual failed: (\"\(String(describing: lhs))\") is not equal to (\"\(String(describing: rhs))\")")
}
}
func XCTAssertEqual(_ lhs: Shape, _ rhs: Shape, accuracy: Double, file: StaticString = #filePath, line: UInt = #line) {
guard lhs.inverseTranslateRotateTransform.contains(where: { point in
let hasMatchingPoint = rhs.inverseTranslateRotateTransform.contains(where: { abs($0.x - point.x) <= accuracy && abs($0.y - point.y) <= accuracy })
return hasMatchingPoint == false
}) else { return }

XCTFail("XCTAssertEqual failed: (\"\(String(describing: lhs))\") is not equal to (\"\(String(describing: rhs))\")", file: file, line: line)
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class RedactionPathLayer: CALayer {
let rect = unrotated.geometryStreamer
// need to actually draw a larger extent on the corner
gigiPath = CGRect(
origin: CGPoint(x: rect.origin.x - Double(startImage.width) , y: rect.origin.y),
origin: CGPoint(x: rect.origin.x - Double(startImage.width), y: rect.origin.y),
size: CGSize(
width: rect.size.width + Double(startImage.width) + Double(endImage.width),
height: rect.size.height
Expand Down

0 comments on commit 28ea6f5

Please sign in to comment.