Skip to content

Commit 02b56ac

Browse files
committed
remove empty string check
1 parent 8fc852a commit 02b56ac

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

pkg/kubernetessecrets/kubernetes_secrets_builder.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,8 @@ func BuildKubernetesSecretFromOnePasswordItem(name, namespace string, annotation
114114
func BuildKubernetesSecretData(fields []*onepassword.ItemField, files []*onepassword.File) map[string][]byte {
115115
secretData := map[string][]byte{}
116116
for i := 0; i < len(fields); i++ {
117-
if fields[i].Value != "" {
118-
key := formatSecretDataName(fields[i].Label)
119-
secretData[key] = []byte(fields[i].Value)
120-
}
117+
key := formatSecretDataName(fields[i].Label)
118+
secretData[key] = []byte(fields[i].Value)
121119
}
122120

123121
// populate unpopulated fields from files

0 commit comments

Comments
 (0)