chore: reduce unnecessary diffs with main

This commit is contained in:
Charles Kerr
2026-03-17 12:33:52 -05:00
parent e2dad0894f
commit 575c2c187a

View File

@@ -184,13 +184,12 @@ bool GlobalShortcut::Register(const ui::Accelerator& accelerator,
isolate->GetCppHeap()->GetAllocationHandle()))));
command_callback_map_[command_str] = callback;
return true;
} else {
if (instance->RegisterAccelerator(accelerator, this)) {
accelerator_callback_map_[accelerator] = callback;
return true;
}
}
if (instance->RegisterAccelerator(accelerator, this)) {
accelerator_callback_map_[accelerator] = callback;
return true;
}
return false;
}