diff options
Diffstat (limited to 'python/src/com/jetbrains/python/run/PythonRunner.java')
-rw-r--r-- | python/src/com/jetbrains/python/run/PythonRunner.java | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/python/src/com/jetbrains/python/run/PythonRunner.java b/python/src/com/jetbrains/python/run/PythonRunner.java index b95da7c62957..3007b0b7a5f9 100644 --- a/python/src/com/jetbrains/python/run/PythonRunner.java +++ b/python/src/com/jetbrains/python/run/PythonRunner.java @@ -59,9 +59,6 @@ public class PythonRunner extends DefaultProgramRunner { else { executionResult = state.execute(env.getExecutor(), this); } - if (executionResult == null) return null; - - final RunContentBuilder contentBuilder = new RunContentBuilder(this, executionResult, env); - return contentBuilder.showRunContent(contentToReuse); + return executionResult == null ? null : new RunContentBuilder(executionResult, env).showRunContent(contentToReuse); } } |