Skip to content

Commit 760564e

Browse files
committed
refactor: remove comments from functions
1 parent 9fbe902 commit 760564e

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

internal/services/keymanager/key_resource.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -247,26 +247,21 @@ func resourceKeyManagerKeyDelete(ctx context.Context, d *schema.ResourceData, m
247247

248248
func validateUsageAlgorithmCombination() schema.CustomizeDiffFunc {
249249
return func(ctx context.Context, diff *schema.ResourceDiff, _ any) error {
250-
// No strict validation here - we let the API validate the algorithm
251-
// This prevents the provider from being a bottleneck when new algorithms are added
252250
return nil
253251
}
254252
}
255253

256254
func expandUsageAlgorithm(usage, algorithm string) (*key_manager.KeyUsage, error) {
257255
switch usage {
258256
case usageSymmetricEncryption:
259-
// Accept any algorithm for symmetric encryption - let API validate
260257
typedAlgo := key_manager.KeyAlgorithmSymmetricEncryption(algorithm)
261258
return &key_manager.KeyUsage{SymmetricEncryption: &typedAlgo}, nil
262259

263260
case usageAsymmetricEncryption:
264-
// Accept any algorithm for asymmetric encryption - let API validate
265261
typedAlgo := key_manager.KeyAlgorithmAsymmetricEncryption(algorithm)
266262
return &key_manager.KeyUsage{AsymmetricEncryption: &typedAlgo}, nil
267263

268264
case usageAsymmetricSigning:
269-
// Accept any algorithm for asymmetric signing - let API validate
270265
typedAlgo := key_manager.KeyAlgorithmAsymmetricSigning(algorithm)
271266
return &key_manager.KeyUsage{AsymmetricSigning: &typedAlgo}, nil
272267

0 commit comments

Comments
 (0)