Skip to content

Commit

Permalink
Apply swiftformat
Browse files Browse the repository at this point in the history
  • Loading branch information
gwynne committed May 15, 2022
1 parent 145c977 commit 719f5ce
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions Sources/NIOSSH/Keys And Signatures/NIOSSHPublicKey.swift
Original file line number Diff line number Diff line change
Expand Up @@ -204,14 +204,14 @@ extension NIOSSHPublicKey {
}

static var customPublicKeyAlgorithms: [NIOSSHPublicKeyProtocol.Type] {
return _CustomAlgorithms.publicKeyAlgorithmsLock.withLock {
return _CustomAlgorithms.publicKeyAlgorithms
_CustomAlgorithms.publicKeyAlgorithmsLock.withLock {
_CustomAlgorithms.publicKeyAlgorithms
}
}

static var customSignatures: [NIOSSHSignatureProtocol.Type] {
return _CustomAlgorithms.signaturesLock.withLock {
return _CustomAlgorithms.signatures
_CustomAlgorithms.signaturesLock.withLock {
_CustomAlgorithms.signatures
}
}
}
Expand Down Expand Up @@ -267,18 +267,18 @@ public enum NIOSSHAlgorithms {
}

internal var customTransportProtectionSchemes: [NIOSSHTransportProtection.Type] {
return _CustomAlgorithms.transportProtectionSchemesLock.withLock {
return _CustomAlgorithms.transportProtectionSchemes
_CustomAlgorithms.transportProtectionSchemesLock.withLock {
_CustomAlgorithms.transportProtectionSchemes
}
}

internal var customKeyExchangeAlgorithms: [NIOSSHKeyExchangeAlgorithmProtocol.Type] {
return _CustomAlgorithms.keyExchangeAlgorithmsLock.withLock {
return _CustomAlgorithms.keyExchangeAlgorithms
_CustomAlgorithms.keyExchangeAlgorithmsLock.withLock {
_CustomAlgorithms.keyExchangeAlgorithms
}
}

fileprivate enum _CustomAlgorithms {
private enum _CustomAlgorithms {
static var transportProtectionSchemesLock = Lock()
static var transportProtectionSchemes = [NIOSSHTransportProtection.Type]()
static var keyExchangeAlgorithmsLock = Lock()
Expand Down

0 comments on commit 719f5ce

Please sign in to comment.