diff options
author | Raphael Isemann <teemperor@gmail.com> | 2018-07-23 20:56:49 +0000 |
---|---|---|
committer | Raphael Isemann <teemperor@gmail.com> | 2018-07-23 20:56:49 +0000 |
commit | 17af5b6e20ef4804ba257b896456da322ab4fcf7 (patch) | |
tree | 22511f750cc6c9d62498fd54768e443abdbe16c8 /lldb/source/Plugins/ScriptInterpreter/Python | |
parent | 044326c7fc686b3e5d51a9456a14b5b58f4c11e4 (diff) | |
download | bcm5719-llvm-17af5b6e20ef4804ba257b896456da322ab4fcf7.tar.gz bcm5719-llvm-17af5b6e20ef4804ba257b896456da322ab4fcf7.zip |
[NFC] Minor code refactoring.
Subscribers: lldb-commits
Differential Revision: https://reviews.llvm.org/D49696
llvm-svn: 337737
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python')
-rw-r--r-- | lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
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()); |