From 20a2f26f8fe198a5b1b2aadf844bdd097e22b59f Mon Sep 17 00:00:00 2001 From: jdf Date: Wed, 3 Mar 2010 19:26:48 +0000 Subject: [PATCH] Moar terse. --- app/src/processing/app/Editor.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/src/processing/app/Editor.java b/app/src/processing/app/Editor.java index 4ca057881..cb78d7f3e 100644 --- a/app/src/processing/app/Editor.java +++ b/app/src/processing/app/Editor.java @@ -1643,11 +1643,7 @@ public class Editor extends JFrame implements RunnerListener { // Cannot use invokeLater() here, otherwise it gets // placed on the event thread and causes a hang--bad idea all around. - if (present) { - new Thread(presentHandler).start(); - } else { - new Thread(runHandler).start(); - } + new Thread(present ? presentHandler : runHandler).start(); }