From 17af5b6e20ef4804ba257b896456da322ab4fcf7 Mon Sep 17 00:00:00 2001 From: Raphael Isemann Date: Mon, 23 Jul 2018 20:56:49 +0000 Subject: [NFC] Minor code refactoring. Subscribers: lldb-commits Differential Revision: https://reviews.llvm.org/D49696 llvm-svn: 337737 --- .../Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp') diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp index 12cadff9351..b8eb36a2baf 100644 --- a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp +++ b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp @@ -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()); -- cgit v1.2.3