Simplify Boolean expressions
This patch simplifies boolean expressions acorss LLDB. It was generated using clang-tidy with the following command: run-clang-tidy.py -checks='-*,readability-simplify-boolean-expr' -format -fix $PWD Differential revision: https://reviews.llvm.org/D55584 llvm-svn: 349215
This commit is contained in:
@@ -222,9 +222,7 @@ PythonBytes::~PythonBytes() {}
|
||||
bool PythonBytes::Check(PyObject *py_obj) {
|
||||
if (!py_obj)
|
||||
return false;
|
||||
if (PyBytes_Check(py_obj))
|
||||
return true;
|
||||
return false;
|
||||
return PyBytes_Check(py_obj);
|
||||
}
|
||||
|
||||
void PythonBytes::Reset(PyRefType type, PyObject *py_obj) {
|
||||
@@ -294,9 +292,7 @@ PythonByteArray::~PythonByteArray() {}
|
||||
bool PythonByteArray::Check(PyObject *py_obj) {
|
||||
if (!py_obj)
|
||||
return false;
|
||||
if (PyByteArray_Check(py_obj))
|
||||
return true;
|
||||
return false;
|
||||
return PyByteArray_Check(py_obj);
|
||||
}
|
||||
|
||||
void PythonByteArray::Reset(PyRefType type, PyObject *py_obj) {
|
||||
|
||||
Reference in New Issue
Block a user