[Lldb-commits] [lldb] r316355 - [lldbtest] Simplify removing an unneeded else. NFCI.

Davide Italiano via lldb-commits lldb-commits at lists.llvm.org
Mon Oct 23 10:51:22 PDT 2017


Author: davide
Date: Mon Oct 23 10:51:22 2017
New Revision: 316355

URL: http://llvm.org/viewvc/llvm-project?rev=316355&view=rev
Log:
[lldbtest] Simplify removing an unneeded else. NFCI.

Modified:
    lldb/trunk/packages/Python/lldbsuite/test/lldbtest.py

Modified: lldb/trunk/packages/Python/lldbsuite/test/lldbtest.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/lldbtest.py?rev=316355&r1=316354&r2=316355&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/lldbtest.py (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/lldbtest.py Mon Oct 23 10:51:22 2017
@@ -1371,10 +1371,9 @@ class Base(unittest2.TestCase):
         self.dumpSessionInfo()."""
         arch = self.getArchitecture()
         comp = self.getCompiler()
+        option_str = ""
         if arch:
             option_str = "-A " + arch
-        else:
-            option_str = ""
         if comp:
             option_str += " -C " + comp
         return option_str




More information about the lldb-commits mailing list