@@ -204,14 +204,14 @@ extension NIOSSHPublicKey {
204
204
}
205
205
206
206
static var customPublicKeyAlgorithms : [ NIOSSHPublicKeyProtocol . Type ] {
207
- return _CustomAlgorithms. publicKeyAlgorithmsLock. withLock {
208
- return _CustomAlgorithms. publicKeyAlgorithms
207
+ _CustomAlgorithms. publicKeyAlgorithmsLock. withLock {
208
+ _CustomAlgorithms. publicKeyAlgorithms
209
209
}
210
210
}
211
211
212
212
static var customSignatures : [ NIOSSHSignatureProtocol . Type ] {
213
- return _CustomAlgorithms. signaturesLock. withLock {
214
- return _CustomAlgorithms. signatures
213
+ _CustomAlgorithms. signaturesLock. withLock {
214
+ _CustomAlgorithms. signatures
215
215
}
216
216
}
217
217
}
@@ -267,18 +267,18 @@ public enum NIOSSHAlgorithms {
267
267
}
268
268
269
269
internal var customTransportProtectionSchemes : [ NIOSSHTransportProtection . Type ] {
270
- return _CustomAlgorithms. transportProtectionSchemesLock. withLock {
271
- return _CustomAlgorithms. transportProtectionSchemes
270
+ _CustomAlgorithms. transportProtectionSchemesLock. withLock {
271
+ _CustomAlgorithms. transportProtectionSchemes
272
272
}
273
273
}
274
274
275
275
internal var customKeyExchangeAlgorithms : [ NIOSSHKeyExchangeAlgorithmProtocol . Type ] {
276
- return _CustomAlgorithms. keyExchangeAlgorithmsLock. withLock {
277
- return _CustomAlgorithms. keyExchangeAlgorithms
276
+ _CustomAlgorithms. keyExchangeAlgorithmsLock. withLock {
277
+ _CustomAlgorithms. keyExchangeAlgorithms
278
278
}
279
279
}
280
280
281
- fileprivate enum _CustomAlgorithms {
281
+ private enum _CustomAlgorithms {
282
282
static var transportProtectionSchemesLock = Lock ( )
283
283
static var transportProtectionSchemes = [ NIOSSHTransportProtection . Type] ( )
284
284
static var keyExchangeAlgorithmsLock = Lock ( )
0 commit comments