mirror of
https://github.com/aljazceru/cdk.git
synced 2026-02-05 05:06:14 +01:00
refactor: remove redundent active keyset check
This commit is contained in:
@@ -302,17 +302,6 @@ impl<L: LocalStore> Mint<L> {
|
||||
.await?
|
||||
.ok_or(Error::UnknownKeySet)?;
|
||||
|
||||
// Get the active keyset for the unit
|
||||
let active_keyset_id = self
|
||||
.localstore
|
||||
.get_active_keyset_id(&keyset.unit)
|
||||
.await?
|
||||
.ok_or(Error::InactiveKeyset)?;
|
||||
|
||||
// Check output is for current active keyset
|
||||
if id.ne(&active_keyset_id) {
|
||||
return Err(Error::InactiveKeyset);
|
||||
}
|
||||
keyset_units.push(keyset.unit);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user