#776: collapse the nested if in select.none (clippy)

This commit is contained in:
bflatastic
2026-10-18 11:34:43 +07:00
parent 9b489a052e
commit d712f2ffd1
+4 -4
View File
@@ -212,10 +212,10 @@ pub fn swallowed_paste(app: &mut FigApp, ctx: &Context) -> Swallowed {
pub fn run_binding(app: &mut FigApp, id: &str) {
match id {
"select.none" => {
if let Some(ctx) = &app.ui_context {
if crate::proto_panel::close_editor(ctx) {
return;
}
if let Some(ctx) = &app.ui_context
&& crate::proto_panel::close_editor(ctx)
{
return;
}
if let Err(e) = app.session.escape() {
app.toast(e.to_string());