Skip to content

Commit

Permalink
fix to return no error if the returned keys are empty
Browse files Browse the repository at this point in the history
Signed-off-by: Jun Kimura <[email protected]>
  • Loading branch information
bluele committed Jul 25, 2024
1 parent 812fab0 commit 814d92f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions app/src/commands/enclave.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,6 @@ fn run_list_keys<E: EnclaveCommandAPI<S>, S: CommitStore>(
} else {
km.all_keys()?
};
if list.is_empty() {
return Err(anyhow!("no enclave keys found"));
}

let mut list_json = Vec::new();
for eki in list {
match eki.avr {
Expand Down

0 comments on commit 814d92f

Please sign in to comment.