Skip to content

Commit a2b7935

Browse files
committed
make fmt
1 parent 8b07604 commit a2b7935

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

enterprise/cli/dbcrypt_rotate.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ package cli
44

55
import (
66
"bytes"
7-
"cdr.dev/slog"
87
"context"
98
"encoding/base64"
9+
10+
"cdr.dev/slog"
11+
1012
"github.com/coder/coder/v2/cli"
1113
"github.com/coder/coder/v2/cli/clibase"
1214
"github.com/coder/coder/v2/coderd/database"

enterprise/cli/dbcrypt_rotate_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import (
55
"database/sql"
66
"encoding/base64"
77
"fmt"
8-
98
"testing"
109

1110
"github.com/coder/coder/v2/coderd/database"

enterprise/cli/server.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ func (r *RootCmd) server() *clibase.Cmd {
8484
c, err := dbcrypt.CipherAES256(dk)
8585
if err != nil {
8686
return nil, nil, xerrors.Errorf("create external-token-encryption-key cipher %d: %w", idx, err)
87-
8887
}
8988
cs = append(cs, c)
9089
}

enterprise/dbcrypt/cipher.go

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,13 @@ func (a *AES256) HexDigest() string {
6464
return a.digest
6565
}
6666

67-
type CipherDigest string
68-
type Ciphers struct {
69-
primary string
70-
m map[string]Cipher
71-
}
67+
type (
68+
CipherDigest string
69+
Ciphers struct {
70+
primary string
71+
m map[string]Cipher
72+
}
73+
)
7274

7375
// NewCiphers returns a new Ciphers instance with the given ciphers.
7476
// The first cipher in the list is the primary cipher. Any ciphers after the

0 commit comments

Comments
 (0)