Skip to content

Commit

Permalink
Merge pull request #2811 from buildkite/golang-org-x-term
Browse files Browse the repository at this point in the history
Update deprecated import
  • Loading branch information
DrJosh9000 authored Jun 5, 2024
2 parents c304368 + d36f21b commit 9e81ce2
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions logger/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"time"

"github.com/buildkite/agent/v3/version"
"golang.org/x/crypto/ssh/terminal"
"golang.org/x/term"
)

const (
Expand Down Expand Up @@ -231,11 +231,7 @@ func ColorsSupported() bool {
}

// Colors can only be shown if STDOUT is a terminal
if terminal.IsTerminal(int(os.Stdout.Fd())) {
return true
}

return false
return term.IsTerminal(int(os.Stdout.Fd()))
}

type JSONPrinter struct {
Expand Down

0 comments on commit 9e81ce2

Please sign in to comment.