Revert "Show ETA only if it is smart status"

Revert submission 2853087

Reason for revert: not necessary

Reverted changes: /q/submissionid:2853087

Change-Id: I747948ce5bec656851bf9a50e136bf7e3aae8df6
This commit is contained in:
Jeongik Cha
2023-12-19 05:44:26 +00:00
committed by Gerrit Code Review
parent 0ba68e40bb
commit b6d5ff505d
2 changed files with 5 additions and 9 deletions

View File

@@ -27,10 +27,9 @@ import (
// statusFormat takes nearly all the same options as NINJA_STATUS.
// %c is currently unsupported.
func NewStatusOutput(w io.Writer, statusFormat string, forceSimpleOutput, quietBuild, forceKeepANSI bool) status.StatusOutput {
useSmartStatus := !forceSimpleOutput && isSmartTerminal(w)
formatter := newFormatter(statusFormat, quietBuild, useSmartStatus)
formatter := newFormatter(statusFormat, quietBuild)
if useSmartStatus {
if !forceSimpleOutput && isSmartTerminal(w) {
return NewSmartStatusOutput(w, formatter)
} else {
return NewSimpleStatusOutput(w, formatter, forceKeepANSI)