Skip to content

Commit

Permalink
Use JWKPArameterType instsead of Any for subscript
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-moh committed Jan 22, 2019
1 parent bf2539b commit 763c67f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion JOSESwift/Sources/JWK.swift
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public protocol JWK: Codable {
/// [RFC 7518, Section 6](https://tools.ietf.org/html/rfc7518#section-6) for possible parameters.
///
/// - Parameter parameter: The desired parameter.
subscript(parameter: String) -> Any? { get }
subscript(parameter: String) -> JWKParameterType? { get }

/// Initializes a JWK from given JSON data.
///
Expand Down
2 changes: 1 addition & 1 deletion JOSESwift/Sources/JWKExtensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import Foundation
// MARK: Subscript

public extension JWK {
subscript(parameter: String) -> Any? {
subscript(parameter: String) -> JWKParameterType? {
return parameters[parameter]
}
}
Expand Down

0 comments on commit 763c67f

Please sign in to comment.