mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-07 19:31:07 +00:00
Companion for https://github.com/paritytech/substrate/pull/7236 (#1773)
* Companion for https://github.com/paritytech/substrate/pull/7236 * "Update Substrate" Co-authored-by: parity-processbot <>
This commit is contained in:
1 parent
d089baf2d4
commit
693d40831d
2 files changed
+141
-140
No files matched your search
Generated
+137
-137
File diff suppressed because it is too large.
Load diff
@@ -340,9 +340,10 @@ impl sp_externalities::ExtensionStore for ValidationExternalities {
|
||||
&mut self,
|
||||
type_id: TypeId,
|
||||
) -> Result<(), sp_externalities::Error> {
|
||||
match self.0.deregister(type_id) {
|
||||
Some(_) => Ok(()),
|
||||
None => Err(sp_externalities::Error::ExtensionIsNotRegistered(type_id))
|
||||
if self.0.deregister(type_id) {
|
||||
Ok(())
|
||||
} else {
|
||||
Err(sp_externalities::Error::ExtensionIsNotRegistered(type_id))
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user