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
Next Next commit
fixup! fix lint error
  • Loading branch information
RaisinTen committed Mar 1, 2021
commit 4a62519d1b569852f184544c66003db46ef26aac
3 changes: 1 addition & 2 deletions src/crypto/crypto_cipher.h
Original file line number Diff line number Diff line change
Expand Up @@ -230,14 +230,13 @@ class CipherJob final : public CryptoJob<CipherTraits> {
CryptoErrorVector* errors = CryptoJob<CipherTraits>::errors();
errors->Capture();
if (errors->empty()) {
switch(status) {
switch (status) {
case WebCryptoCipherStatus::INVALID_KEY_TYPE:
errors->emplace_back("Invalid key type.");
break;
case WebCryptoCipherStatus::FAILED:
errors->emplace_back("Cipher job failed.");
break;
}
}
}
}
Expand Down
3 changes: 1 addition & 2 deletions src/crypto/crypto_keys.h
Original file line number Diff line number Diff line change
Expand Up @@ -350,14 +350,13 @@ class KeyExportJob final : public CryptoJob<KeyExportTraits> {
CryptoErrorVector* errors = CryptoJob<KeyExportTraits>::errors();
errors->Capture();
if (errors->empty()) {
switch(status) {
switch (status) {
case WebCryptoKeyExportStatus::INVALID_KEY_TYPE:
errors->emplace_back("Invalid key type.");
break;
case WebCryptoKeyExportStatus::FAILED:
errors->emplace_back("Cipher job failed.");
break;
}
}
}
}
Expand Down