From b57cbb11093e11f08bdeb3d54234909b8fa079fe Mon Sep 17 00:00:00 2001 From: Ayman Bagabas Date: Fri, 14 Apr 2023 17:01:36 -0400 Subject: [PATCH] fix: lint --- color.go | 2 +- termenv_unix.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/color.go b/color.go index 0d11f43..1a216e9 100644 --- a/color.go +++ b/color.go @@ -68,7 +68,7 @@ func ConvertToRGB(c Color) colorful.Color { } // Sequence returns the ANSI Sequence for the color. -func (c NoColor) Sequence(bg bool) string { +func (c NoColor) Sequence(_ bool) string { return "" } diff --git a/termenv_unix.go b/termenv_unix.go index 9d0d9b1..1ae8bd2 100644 --- a/termenv_unix.go +++ b/termenv_unix.go @@ -288,6 +288,6 @@ func (o Output) termStatusReport(sequence int) (string, error) { // Windows for w and returns a function that restores w to its previous state. // On non-Windows platforms, or if w does not refer to a terminal, then it // returns a non-nil no-op function and no error. -func EnableVirtualTerminalProcessing(w io.Writer) (func() error, error) { +func EnableVirtualTerminalProcessing(_ io.Writer) (func() error, error) { return func() error { return nil }, nil }