Skip to content

Commit 719f5ce

Browse files
committed
Apply swiftformat
1 parent 145c977 commit 719f5ce

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -204,14 +204,14 @@ extension NIOSSHPublicKey {
204204
}
205205

206206
static var customPublicKeyAlgorithms: [NIOSSHPublicKeyProtocol.Type] {
207-
return _CustomAlgorithms.publicKeyAlgorithmsLock.withLock {
208-
return _CustomAlgorithms.publicKeyAlgorithms
207+
_CustomAlgorithms.publicKeyAlgorithmsLock.withLock {
208+
_CustomAlgorithms.publicKeyAlgorithms
209209
}
210210
}
211211

212212
static var customSignatures: [NIOSSHSignatureProtocol.Type] {
213-
return _CustomAlgorithms.signaturesLock.withLock {
214-
return _CustomAlgorithms.signatures
213+
_CustomAlgorithms.signaturesLock.withLock {
214+
_CustomAlgorithms.signatures
215215
}
216216
}
217217
}
@@ -267,18 +267,18 @@ public enum NIOSSHAlgorithms {
267267
}
268268

269269
internal var customTransportProtectionSchemes: [NIOSSHTransportProtection.Type] {
270-
return _CustomAlgorithms.transportProtectionSchemesLock.withLock {
271-
return _CustomAlgorithms.transportProtectionSchemes
270+
_CustomAlgorithms.transportProtectionSchemesLock.withLock {
271+
_CustomAlgorithms.transportProtectionSchemes
272272
}
273273
}
274274

275275
internal var customKeyExchangeAlgorithms: [NIOSSHKeyExchangeAlgorithmProtocol.Type] {
276-
return _CustomAlgorithms.keyExchangeAlgorithmsLock.withLock {
277-
return _CustomAlgorithms.keyExchangeAlgorithms
276+
_CustomAlgorithms.keyExchangeAlgorithmsLock.withLock {
277+
_CustomAlgorithms.keyExchangeAlgorithms
278278
}
279279
}
280280

281-
fileprivate enum _CustomAlgorithms {
281+
private enum _CustomAlgorithms {
282282
static var transportProtectionSchemesLock = Lock()
283283
static var transportProtectionSchemes = [NIOSSHTransportProtection.Type]()
284284
static var keyExchangeAlgorithmsLock = Lock()

0 commit comments

Comments
 (0)