Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fixup! fix compiler warning
  • Loading branch information
RaisinTen committed Mar 1, 2021
commit 4085b48776abd8db8bf4c015696ffe704ea24c92
3 changes: 3 additions & 0 deletions src/crypto/crypto_cipher.h
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,9 @@ class CipherJob final : public CryptoJob<CipherTraits> {
errors->Capture();
if (errors->empty()) {
switch (status) {
case WebCryptoCipherStatus::OK:
UNREACHABLE();
break;
case WebCryptoCipherStatus::INVALID_KEY_TYPE:
errors->emplace_back("Invalid key type.");
break;
Expand Down
3 changes: 3 additions & 0 deletions src/crypto/crypto_keys.h
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,9 @@ class KeyExportJob final : public CryptoJob<KeyExportTraits> {
errors->Capture();
if (errors->empty()) {
switch (status) {
case WebCryptoKeyExportStatus::OK:
UNREACHABLE();
break;
case WebCryptoKeyExportStatus::INVALID_KEY_TYPE:
errors->emplace_back("Invalid key type.");
break;
Expand Down