From 3e98f55adf34de964a134b7b3a873d6b109b9546 Mon Sep 17 00:00:00 2001 From: Christian Rocha Date: Mon, 31 May 2021 10:27:59 -0400 Subject: [PATCH] Add linter ignore rule for windows-related false positive on unix --- tea.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tea.go b/tea.go index 80d12b8..4ea4ec2 100644 --- a/tea.go +++ b/tea.go @@ -156,7 +156,11 @@ type Program struct { // Stores the original reference to stdin for cases where input is not a // TTY on windows and we've automatically opened CONIN$ to receive input. // When the program exits this will be restored. - windowsStdin *os.File + // + // Lint ignore note: the linter will find false positive on unix systems + // as this value only comes into play on Windows, hence the ignore comment + // below. + windowsStdin *os.File //nolint:golint,structcheck,unused } // Quit is a special command that tells the Bubble Tea program to exit.