From 7aa526921c2f00ba34abc23b7856148a54f050c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20Miri=C4=87?= Date: Thu, 16 Jul 2020 14:00:06 +0200 Subject: [PATCH] Silence linter, the conversion is required on Windows --- cmd/login_cloud.go | 2 +- cmd/login_influxdb.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/login_cloud.go b/cmd/login_cloud.go index dd6cae8869a..f440a81cd56 100644 --- a/cmd/login_cloud.go +++ b/cmd/login_cloud.go @@ -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) diff --git a/cmd/login_influxdb.go b/cmd/login_influxdb.go index d425c1041b5..602ccb41ee6 100644 --- a/cmd/login_influxdb.go +++ b/cmd/login_influxdb.go @@ -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)