[NFC] Minor code refactoring.

Subscribers: lldb-commits

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

llvm-svn: 337737
This commit is contained in:
Raphael Isemann
2018-07-23 20:56:49 +00:00
parent 044326c7fc
commit 17af5b6e20

View 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());