Skip to content

Commit

Permalink
Silence linter, the conversion is required on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Mirić committed Jul 16, 2020
1 parent 1e4b958 commit 7aa5269
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/login_cloud.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ This will set the default token used when just "k6 run -o cloud" is passed.`,
},
},
}
if !terminal.IsTerminal(syscall.Stdin) {
if !terminal.IsTerminal(int(syscall.Stdin)) { // nolint: unconvert
logger.Warn("Stdin is not a terminal, falling back to plain text input")
}
vals, err := form.Run(os.Stdin, stdout)
Expand Down
2 changes: 1 addition & 1 deletion cmd/login_influxdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ This will set the default server used when just "-o influxdb" is passed.`,
},
},
}
if !terminal.IsTerminal(syscall.Stdin) {
if !terminal.IsTerminal(int(syscall.Stdin)) { // nolint: unconvert
logger.Warn("Stdin is not a terminal, falling back to plain text input")
}
vals, err := form.Run(os.Stdin, stdout)
Expand Down

0 comments on commit 7aa5269

Please sign in to comment.