Skip to content

Commit

Permalink
Swiftlint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
0xWDG committed Nov 29, 2024
1 parent 8ebd899 commit d37d327
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/GameControllerKit/GCKController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ public typealias GCKController = GCController
extension GCKController {
/// Does the current controller has a touchpad?
public var hasTouchPad: Bool {
if self.physicalInputProfile as? GCDualSenseGamepad != nil {
if self.physicalInputProfile is GCDualSenseGamepad {
return true
}

if self.physicalInputProfile as? GCDualShockGamepad != nil {
if self.physicalInputProfile is GCDualShockGamepad {
return true
}

Expand All @@ -33,6 +33,6 @@ extension GCKController {

/// Does the current controller have paddle buttons?
public var hasPaddleButtons: Bool {
return self.physicalInputProfile as? GCXboxGamepad != nil
return self.physicalInputProfile is GCXboxGamepad
}
}

0 comments on commit d37d327

Please sign in to comment.