Explorar o código

Remove redundant check on DP_STDOUT

Bryan Drewery %!s(int64=11) %!d(string=hai) anos
pai
achega
263b41f01c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/dccutil.cc

+ 1 - 1
src/dccutil.cc

@@ -318,7 +318,7 @@ dprintf_real(int idx, char* buf, size_t len, size_t bufsiz, const char* target)
   } else if (unlikely(idx < 0)) {
     tputs(-idx, buf, len);
   } else if (idx > 0x7FF0) {
-    if (unlikely(idx == DP_STDOUT || idx == DP_STDOUT)) {
+    if (unlikely(idx == DP_STDOUT)) {
       len = colorbuf(buf, len, -1, bufsiz);
     }