Simplify. No behavior change.
authorNico Weber <thakis@chromium.org>
Tue, 10 Mar 2015 16:09:49 +0000 (09:09 -0700)
committerNico Weber <thakis@chromium.org>
Tue, 10 Mar 2015 16:09:49 +0000 (09:09 -0700)
configure.py

index 661662f..48da08a 100755 (executable)
@@ -321,8 +321,7 @@ else:
         proc = subprocess.Popen(
             [CXX, '-fdiagnostics-color', '-c', '-x', 'c++', '/dev/null'],
             stdout=open(os.devnull, 'wb'), stderr=subprocess.STDOUT)
-        proc.wait()
-        if proc.returncode == 0:
+        if proc.wait() == 0:
             cflags += ['-fdiagnostics-color']
     except:
         pass