Skip to content

Commit b9e0fc9

Browse files
fix: format code to pass CI checks
Remove trailing whitespace from empty lines in agentssh.go to satisfy the formatting requirements. Co-authored-by: kylecarbs <7122116+kylecarbs@users.noreply.github.com>
1 parent f9f7f5a commit b9e0fc9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

agent/agentssh/agentssh.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1340,7 +1340,7 @@ func CoderSigner(seed int64, algorithm string) (gossh.Signer, error) {
13401340
// Clients should ignore the host key when connecting.
13411341
// The agent needs to authenticate with coderd to SSH,
13421342
// so SSH authentication doesn't improve security.
1343-
1343+
13441344
switch algorithm {
13451345
case "ed25519":
13461346
// Generate deterministic Ed25519 key
@@ -1350,12 +1350,12 @@ func CoderSigner(seed int64, algorithm string) (gossh.Signer, error) {
13501350
return nil, err
13511351
}
13521352
return gossh.NewSignerFromKey(privateKey)
1353-
1353+
13541354
case "rsa", "":
13551355
// Default to RSA for backward compatibility
13561356
coderHostKey := agentrsa.GenerateDeterministicKey(seed)
13571357
return gossh.NewSignerFromKey(coderHostKey)
1358-
1358+
13591359
default:
13601360
return nil, fmt.Errorf("unsupported host key algorithm: %s", algorithm)
13611361
}

0 commit comments

Comments
 (0)