From 8b7736ee156d8b7fc0eb888e9b64897fe4750e58 Mon Sep 17 00:00:00 2001 From: Valerio Mazzeo Date: Thu, 24 Oct 2019 11:27:04 +0100 Subject: [PATCH] Fixed warning: 'public' modifier is redundant for initializer declared in a public extension --- Sources/JWT/JWK+KeyOperation.swift | 2 +- Sources/JWT/JWK.swift | 2 +- Sources/JWT/JWKS.swift | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/JWT/JWK+KeyOperation.swift b/Sources/JWT/JWK+KeyOperation.swift index ac689cb..cee4aa2 100644 --- a/Sources/JWT/JWK+KeyOperation.swift +++ b/Sources/JWT/JWK+KeyOperation.swift @@ -1,6 +1,6 @@ import Foundation -public extension JWK { +extension JWK { public enum KeyOperation: String, Codable { /// Compute digital signature or MAC. case sign diff --git a/Sources/JWT/JWK.swift b/Sources/JWT/JWK.swift index 2f6d1c4..ff52576 100644 --- a/Sources/JWT/JWK.swift +++ b/Sources/JWT/JWK.swift @@ -155,7 +155,7 @@ public struct JWK: Codable { } } -public extension JWTSigner { +extension JWTSigner { /// Creates a JWT signer with the supplied JWK public static func jwk(key: JWK) throws -> JWTSigner { diff --git a/Sources/JWT/JWKS.swift b/Sources/JWT/JWKS.swift index d02ad40..c46de93 100644 --- a/Sources/JWT/JWKS.swift +++ b/Sources/JWT/JWKS.swift @@ -13,7 +13,7 @@ public struct JWKS: Codable { } } -public extension JWTSigners { +extension JWTSigners { public convenience init(jwks: JWKS, skipAnonymousKeys: Bool = true) throws { self.init()