diff --git a/Sources/OAuthKit/Extensions/Collection+Extensions.swift b/Sources/OAuthKit/Extensions/Collection+Extensions.swift index 2c5dae2..a92bc9a 100644 --- a/Sources/OAuthKit/Extensions/Collection+Extensions.swift +++ b/Sources/OAuthKit/Extensions/Collection+Extensions.swift @@ -2,7 +2,7 @@ // Collection+Extensions.swift // // -// Created by Kevin McKee on 5/29/24. +// Created by Kevin McKee // import Foundation @@ -11,7 +11,5 @@ extension Collection { /// Returns true if the collection is not empty. @inlinable - public var isNotEmpty: Bool { - !isEmpty - } + public var isNotEmpty: Bool { !isEmpty } } diff --git a/Sources/OAuthKit/Extensions/Date+Extensions.swift b/Sources/OAuthKit/Extensions/Date+Extensions.swift index 8198041..aa2c4e1 100644 --- a/Sources/OAuthKit/Extensions/Date+Extensions.swift +++ b/Sources/OAuthKit/Extensions/Date+Extensions.swift @@ -2,7 +2,7 @@ // Date+Extensions.swift // // -// Created by Kevin McKee on 5/30/24. +// Created by Kevin McKee // import Foundation @@ -15,6 +15,6 @@ public extension Date { /// - rhs: the right hand date /// - Returns: the time interval between the two dates. static func - (lhs: Date, rhs: Date) -> TimeInterval { - return lhs.timeIntervalSinceReferenceDate - rhs.timeIntervalSinceReferenceDate + lhs.timeIntervalSinceReferenceDate - rhs.timeIntervalSinceReferenceDate } } diff --git a/Sources/OAuthKit/Extensions/String+Extensions.swift b/Sources/OAuthKit/Extensions/String+Extensions.swift index b985b4c..05c3239 100644 --- a/Sources/OAuthKit/Extensions/String+Extensions.swift +++ b/Sources/OAuthKit/Extensions/String+Extensions.swift @@ -10,7 +10,7 @@ import Foundation extension String { - /// Denotes an empty string. + /// Denotes an empty string literal. static let empty = "" /// Returns the SHA-256 Digest for this string instance diff --git a/Sources/OAuthKit/OAuth+Authorization.swift b/Sources/OAuthKit/OAuth+Authorization.swift index a6afedc..13ab3c6 100644 --- a/Sources/OAuthKit/OAuth+Authorization.swift +++ b/Sources/OAuthKit/OAuth+Authorization.swift @@ -19,7 +19,7 @@ extension OAuth { /// The issued access token. public let token: Token - /// Initializer + /// Creates an authorization that can be stored inside the keychain. /// - Parameters: /// - issuer: the provider ID that issued the authorization. /// - token: the access token diff --git a/Sources/OAuthKit/OAuth+GrantType.swift b/Sources/OAuthKit/OAuth+GrantType.swift index 2abb319..d82876e 100644 --- a/Sources/OAuthKit/OAuth+GrantType.swift +++ b/Sources/OAuthKit/OAuth+GrantType.swift @@ -40,15 +40,15 @@ extension OAuth { public var rawValue: String { switch self { case .authorizationCode: - return "authorization_code" + "authorization_code" case .clientCredentials: - return "client_credentials" + "client_credentials" case .deviceCode: - return "device_code" + "device_code" case .pkce: - return "pkce" + "pkce" case .refreshToken: - return "refresh_token" + "refresh_token" } } }