Skip to content

Commit

Permalink
Fixing a spelling mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
zveinn committed Jun 13, 2024
1 parent 02bd93d commit 6a02624
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cmd/encryption-methods.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,19 +198,19 @@ func parseSSEKey(sseKey string, keyType sseKeyType) (
) {
sseKeyBytes := []byte(sseKey)

seperatorIndex := bytes.LastIndex(sseKeyBytes, []byte("="))
if seperatorIndex < 0 {
separatorIndex := bytes.LastIndex(sseKeyBytes, []byte("="))
if separatorIndex < 0 {
err = errSSEKeyMissing().Trace(sseKey)
return
}

encodedKey := string(sseKeyBytes[seperatorIndex+1:])
if seperatorIndex == len(sseKeyBytes)-1 {
encodedKey := string(sseKeyBytes[separatorIndex+1:])
if separatorIndex == len(sseKeyBytes)-1 {
err = errSSEKeyMissing().Trace(sseKey)
return
}

alias, prefix = splitKey(string(sseKeyBytes[:seperatorIndex]))
alias, prefix = splitKey(string(sseKeyBytes[:separatorIndex]))

if keyType == sseS3 {
return
Expand Down

0 comments on commit 6a02624

Please sign in to comment.