Skip to content

Commit d37d327

Browse files
committed
Swiftlint fixes
1 parent 8ebd899 commit d37d327

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/GameControllerKit/GCKController.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ public typealias GCKController = GCController
2020
extension GCKController {
2121
/// Does the current controller has a touchpad?
2222
public var hasTouchPad: Bool {
23-
if self.physicalInputProfile as? GCDualSenseGamepad != nil {
23+
if self.physicalInputProfile is GCDualSenseGamepad {
2424
return true
2525
}
2626

27-
if self.physicalInputProfile as? GCDualShockGamepad != nil {
27+
if self.physicalInputProfile is GCDualShockGamepad {
2828
return true
2929
}
3030

@@ -33,6 +33,6 @@ extension GCKController {
3333

3434
/// Does the current controller have paddle buttons?
3535
public var hasPaddleButtons: Bool {
36-
return self.physicalInputProfile as? GCXboxGamepad != nil
36+
return self.physicalInputProfile is GCXboxGamepad
3737
}
3838
}

0 commit comments

Comments
 (0)