[NFC] Minor code refactoring.
authorRaphael Isemann <teemperor@gmail.com>
Mon, 23 Jul 2018 20:56:49 +0000 (20:56 +0000)
committerRaphael Isemann <teemperor@gmail.com>
Mon, 23 Jul 2018 20:56:49 +0000 (20:56 +0000)
Subscribers: lldb-commits

Differential Revision: https://reviews.llvm.org/D49696

llvm-svn: 337737

lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp

index 12cadff..b8eb36a 100644 (file)
@@ -1163,10 +1163,7 @@ bool ScriptInterpreterPython::ExecuteOneLineWithReturn(
     }
     }
 
-    if (success)
-      ret_success = true;
-    else
-      ret_success = false;
+    ret_success = success;
   }
 
   py_error.Reset(PyRefType::Borrowed, PyErr_Occurred());