Skip to content

Commit

Permalink
crc status: remove redundant workaround on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
vyasgun authored and openshift-merge-bot[bot] committed Feb 1, 2024
1 parent dfbbf23 commit c37d4b2
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions cmd/crc/cmd/status.go
Expand Up @@ -7,11 +7,9 @@ import (
"net/url"
"os"
"path/filepath"
"runtime"
"text/tabwriter"

"github.com/cheggaaa/pb/v3"
"github.com/cheggaaa/pb/v3/termutil"
"github.com/crc-org/crc/v2/pkg/crc/constants"
"github.com/crc-org/crc/v2/pkg/crc/daemonclient"
crcErrors "github.com/crc-org/crc/v2/pkg/crc/errors"
Expand Down Expand Up @@ -97,12 +95,6 @@ func runWatchStatus(writer io.Writer, client *daemonclient.Client, cacheDir stri
if startErr := barPool.Start(); startErr != nil {
return
}
if runtime.GOOS == "windows" {
// Print and ignore the error to continue printing
if rawErr := termutil.RawModeOff(); rawErr != nil {
fmt.Fprintf(os.Stderr, "Failed to turn off raw mode due to error: %v\n", rawErr)
}
}
isPoolInit = true
} else if len(loadResult.CPUUse) > len(cpuBars) {
newCPUCount := len(loadResult.CPUUse) - len(cpuBars)
Expand Down

0 comments on commit c37d4b2

Please sign in to comment.