Skip to content

Commit

Permalink
PM-13902 Alphabetized CipherSSHKeyModel properties.
Browse files Browse the repository at this point in the history
  • Loading branch information
fedemkr committed Oct 29, 2024
1 parent 6528f5b commit 0122b67
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,9 @@ extension CipherSecureNoteModel {
extension CipherSSHKeyModel {
init(sshKey: BitwardenSdk.SshKey) {
self.init(
publicKey: sshKey.publicKey,
keyFingerprint: sshKey.fingerprint,
privateKey: sshKey.privateKey,
keyFingerprint: sshKey.fingerprint
publicKey: sshKey.publicKey
)
}
}
Expand Down
8 changes: 4 additions & 4 deletions BitwardenShared/Core/Vault/Models/API/CipherSSHKeyModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
struct CipherSSHKeyModel: Codable, Equatable {
// MARK: Properties

/// The public key of the SSH key.
let publicKey: String?
/// The key fingerprint of the SSH key.
let keyFingerprint: String?

/// The private key of the SSH key.
let privateKey: String?

/// The key fingerprint of the SSH key.
let keyFingerprint: String?
/// The public key of the SSH key.
let publicKey: String?
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ import Foundation

extension CipherSSHKeyModel {
static func fixture(
publicKey: String? = "publicKey",
keyFingerprint: String? = "keyFingerprint",
privateKey: String? = "privateKey",
keyFingerprint: String? = "keyFingerprint"
publicKey: String? = "publicKey"
) -> CipherSSHKeyModel {
self.init(
publicKey: publicKey,
keyFingerprint: keyFingerprint,
privateKey: privateKey,
keyFingerprint: keyFingerprint
publicKey: publicKey
)
}
}

0 comments on commit 0122b67

Please sign in to comment.