Skip to content

Commit

Permalink
Merge pull request containers#5745 from cuishuang/main
Browse files Browse the repository at this point in the history
fix: remove duplicate conditions
  • Loading branch information
openshift-merge-bot[bot] authored Sep 20, 2024
2 parents d8a9a87 + c07ae2b commit 27b9288
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/parse/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,7 @@ func GetConfidentialWorkloadOptions(arg string) (define.ConfidentialWorkloadOpti
if options.AttestationURL == option {
options.AttestationURL = strings.TrimPrefix(option, "attestation-url=")
}
case strings.HasPrefix(option, "passphrase="), strings.HasPrefix(option, "passphrase="):
case strings.HasPrefix(option, "passphrase="):
options.Convert = true
options.DiskEncryptionPassphrase = strings.TrimPrefix(option, "passphrase=")
case strings.HasPrefix(option, "workload_id="), strings.HasPrefix(option, "workload-id="):
Expand Down

0 comments on commit 27b9288

Please sign in to comment.