From f9721e6df2ce28ef5b814fc2dde2af85af72bf88 Mon Sep 17 00:00:00 2001 From: Elizaveta Shashkova Date: Mon, 4 Dec 2017 20:25:52 +0300 Subject: [PATCH] Simplify util function (PY-27227) --- .../com/jetbrains/python/debugger/PyDebugSupportUtils.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/python/src/com/jetbrains/python/debugger/PyDebugSupportUtils.java b/python/src/com/jetbrains/python/debugger/PyDebugSupportUtils.java index e107e8707979..2e37bcad33bf 100644 --- a/python/src/com/jetbrains/python/debugger/PyDebugSupportUtils.java +++ b/python/src/com/jetbrains/python/debugger/PyDebugSupportUtils.java @@ -118,9 +118,6 @@ public class PyDebugSupportUtils { public static boolean isCurrentPythonDebugProcess(Project project) { XDebugSession session = XDebuggerManager.getInstance(project).getCurrentSession(); - if (session != null && session.getDebugProcess() instanceof PyDebugProcess) { - return true; - } - return false; + return session != null && session.getDebugProcess() instanceof PyDebugProcess; } }