mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-09 02:28:18 +00:00
Cleanup
This commit is contained in:
@@ -53,8 +53,8 @@ func GetBase64DecodedSymmetricEncryptionDetails(key string, cipher string, IV st
|
||||
}, nil
|
||||
}
|
||||
|
||||
// Helper function to sort the secrets by key so we can create a consistent output
|
||||
func SortSecretsByKeys(secrets []models.SingleEnvironmentVariable) []models.SingleEnvironmentVariable {
|
||||
// sort secrets by key
|
||||
for i := 0; i < len(secrets); i++ {
|
||||
for j := i + 1; j < len(secrets); j++ {
|
||||
if secrets[i].Key > secrets[j].Key {
|
||||
|
||||
Reference in New Issue
Block a user