From 5105e7ec4fa80855dd598c7ea62a028afac73525 Mon Sep 17 00:00:00 2001 From: Dustin Pianalto Date: Fri, 25 Sep 2020 00:25:42 -0800 Subject: [PATCH] Remove buffer from args --- quotearg.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quotearg.go b/quotearg.go index 025d9f6..50f9fe5 100644 --- a/quotearg.go +++ b/quotearg.go @@ -65,7 +65,6 @@ func GetTextQuote(s QuotingStyle) rune { } func Quote( - buffer []rune, arg []rune, style QuotingStyle, flags int, @@ -73,6 +72,7 @@ func Quote( leftQuote rune, rightQuote rune, ) []rune { + var buffer []rune var elideOuterQuotes bool = (flags & QAElideOuterQuotes) != 0 var pendingShellEscapeEnd bool var escaping bool