[Lldb-commits] [PATCH] D49696: [NFC] Minor code refactoring.

Raphael Isemann via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Jul 23 13:56:20 PDT 2018


teemperor created this revision.

https://reviews.llvm.org/D49696

Files:
  source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp


Index: source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
===================================================================
--- source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
+++ source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
@@ -1163,10 +1163,7 @@
     }
     }
 
-    if (success)
-      ret_success = true;
-    else
-      ret_success = false;
+    ret_success = success;
   }
 
   py_error.Reset(PyRefType::Borrowed, PyErr_Occurred());


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49696.156873.patch
Type: text/x-patch
Size: 502 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20180723/88b19696/attachment-0001.bin>


More information about the lldb-commits mailing list