Skip to content

Commit da8c984

Browse files
committed
appease the linter
1 parent 4c6a93f commit da8c984

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

cli/root.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,7 @@ func (r *RootCmd) Command(subcommands []*clibase.Cmd) (*clibase.Cmd, error) {
243243
for _, opt := range cmd.Options {
244244
// Verify that every option is configurable.
245245
if opt.Flag == "" && opt.Env == "" {
246-
// TODO(Cian): maybe move dbcrypt-rotate under server to work around this?
247-
if cmd.Name() == "server" || cmd.Name() == "dbcrypt-rotate" {
246+
if cmd.Name() == "server" {
248247
// The server command is funky and has YAML-only options, e.g.
249248
// support links.
250249
return

enterprise/dbcrypt/cipher.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,11 @@ func (cs Ciphers) Encrypt(plaintext []byte) ([]byte, error) {
9898
return nil, xerrors.Errorf("no ciphers configured")
9999
}
100100
prefix := []byte(c.HexDigest() + "-")
101-
crypted, err := c.Encrypt(plaintext)
101+
encrypted, err := c.Encrypt(plaintext)
102102
if err != nil {
103103
return nil, err
104104
}
105-
return append(prefix, crypted...), nil
105+
return append(prefix, encrypted...), nil
106106
}
107107

108108
// Decrypt decrypts the given ciphertext using the cipher indicated by the

0 commit comments

Comments
 (0)