mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
clippy: add if_not_else clippy lint (#10524)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
@ -68,10 +68,10 @@ impl EngineHooksController {
|
||||
"Polled running hook with db write access"
|
||||
);
|
||||
|
||||
if !result.event.is_finished() {
|
||||
self.active_db_write_hook = Some(hook);
|
||||
} else {
|
||||
if result.event.is_finished() {
|
||||
self.hooks.push_back(hook);
|
||||
} else {
|
||||
self.active_db_write_hook = Some(hook);
|
||||
}
|
||||
|
||||
return Poll::Ready(Ok(result))
|
||||
|
||||
Reference in New Issue
Block a user