Skip to content

Commit

Permalink
Update cmd/sops/main.go
Browse files Browse the repository at this point in the history
Co-authored-by: Hidde Beydals <hiddeco@users.noreply.github.com>
Signed-off-by: Boris Kreitchman <bkreitch@gmail.com>
  • Loading branch information
bkreitch and hiddeco authored Dec 17, 2023
1 parent 4ec7e69 commit f83bdaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/sops/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -1386,7 +1386,7 @@ func decryptionOrder(decryptionOrder string) ([]string, error) {
return sops.SopsDecryptionOrderDefault, nil
}
orderList := strings.Split(decryptionOrder, ",")
unique := make(map[string]bool)
unique := make(map[string]interface{})
for _, v := range orderList {
if _, ok := unique[v]; ok {
return nil, common.NewExitError(fmt.Sprintf("Duplicate decryption key type: %s", v), codes.DuplicateDecryptionKeyType)
Expand Down

0 comments on commit f83bdaa

Please sign in to comment.