Skip to content

Commit

Permalink
SwiftLint
Browse files Browse the repository at this point in the history
  • Loading branch information
jguz-pubnub committed Dec 18, 2024
1 parent d7df069 commit e71d567
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 21 deletions.
12 changes: 6 additions & 6 deletions Sources/Extensions/PubNub.MembershipSortField.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,18 @@ extension PubNub.MembershipSortField {
case let .object(objectSortProperty):
switch objectSortProperty {
case .id:
ascending ? PNSortKeyPNAsc(key: PNMembershipKey.channelId) : PNSortKeyPNDesc(key: .channelId)
return ascending ? PNSortKeyPNAsc(key: PNMembershipKey.channelId) : PNSortKeyPNDesc(key: .channelId)
case .name:
ascending ? PNSortKeyPNAsc(key: PNMembershipKey.channelName) : PNSortKeyPNDesc(key: .channelName)
return ascending ? PNSortKeyPNAsc(key: PNMembershipKey.channelName) : PNSortKeyPNDesc(key: .channelName)
case .updated:
ascending ? PNSortKeyPNAsc(key: PNMembershipKey.channelUpdated) : PNSortKeyPNDesc(key: .channelUpdated)
return ascending ? PNSortKeyPNAsc(key: PNMembershipKey.channelUpdated) : PNSortKeyPNDesc(key: .channelUpdated)
case .type, .status:
nil
return nil
}
case .type, .status:
nil
return nil
case .updated:
ascending ? PNSortKeyPNAsc(key: PNMembershipKey.updated) : PNSortKeyPNDesc(key: .updated)
return ascending ? PNSortKeyPNAsc(key: PNMembershipKey.updated) : PNSortKeyPNDesc(key: .updated)
}
}
}
10 changes: 5 additions & 5 deletions Sources/Extensions/PubNub.ObjectSortField.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ extension PubNub.ObjectSortField {
func transform() -> PNSortKey<PNKey>? {
switch property {
case .id:
ascending ? PNSortKeyPNAsc(key: .id) : PNSortKeyPNDesc(key: .id)
return ascending ? PNSortKeyPNAsc(key: .id) : PNSortKeyPNDesc(key: .id)
case .name:
ascending ? PNSortKeyPNAsc(key: .name) : PNSortKeyPNDesc(key: .name)
return ascending ? PNSortKeyPNAsc(key: .name) : PNSortKeyPNDesc(key: .name)
case .type:
ascending ? PNSortKeyPNAsc(key: .type) : PNSortKeyPNDesc(key: .type)
return ascending ? PNSortKeyPNAsc(key: .type) : PNSortKeyPNDesc(key: .type)
case .status:
ascending ? PNSortKeyPNAsc(key: .status) : PNSortKeyPNDesc(key: .status)
return ascending ? PNSortKeyPNAsc(key: .status) : PNSortKeyPNDesc(key: .status)
case .updated:
ascending ? PNSortKeyPNAsc(key: .updated) : PNSortKeyPNDesc(key: .updated)
return ascending ? PNSortKeyPNAsc(key: .updated) : PNSortKeyPNDesc(key: .updated)
}
}
}
10 changes: 0 additions & 10 deletions Tests/PubNubSwiftChatSDKTests.plist

This file was deleted.

0 comments on commit e71d567

Please sign in to comment.