Skip to content

Commit 2211f0d

Browse files
committed
Minor cleanup
1 parent c36b865 commit 2211f0d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Confluent.SchemaRegistry.Encryption/KmsClientWrapper.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public async Task<byte[]> Encrypt(byte[] plaintext)
4545
}
4646
}
4747
}
48-
return null;
48+
throw new RuleException("No KEK found for encryption");
4949
}
5050

5151
public async Task<byte[]> Decrypt(byte[] ciphertext)
@@ -65,7 +65,7 @@ public async Task<byte[]> Decrypt(byte[] ciphertext)
6565
}
6666
}
6767
}
68-
return null;
68+
throw new RuleException("No KEK found for decryption");
6969
}
7070

7171
private IList<string> GetKmsKeyIds()

0 commit comments

Comments
 (0)