Compare commits

...

2 Commits

Author SHA1 Message Date
Dustin Pianalto
23946a44d6 Remove buffer from args 2020-09-25 00:31:24 -08:00
Dustin Pianalto
5105e7ec4f Remove buffer from args 2020-09-25 00:25:42 -08:00

View File

@ -65,7 +65,6 @@ func GetTextQuote(s QuotingStyle) rune {
} }
func Quote( func Quote(
buffer []rune,
arg []rune, arg []rune,
style QuotingStyle, style QuotingStyle,
flags int, flags int,
@ -73,6 +72,7 @@ func Quote(
leftQuote rune, leftQuote rune,
rightQuote rune, rightQuote rune,
) []rune { ) []rune {
var buffer []rune
var elideOuterQuotes bool = (flags & QAElideOuterQuotes) != 0 var elideOuterQuotes bool = (flags & QAElideOuterQuotes) != 0
var pendingShellEscapeEnd bool var pendingShellEscapeEnd bool
var escaping bool var escaping bool
@ -380,7 +380,6 @@ ForceOuterQuotingStyle:
style = ShellEscapeAlwaysQuotingStyle style = ShellEscapeAlwaysQuotingStyle
} }
return Quote( return Quote(
buffer,
arg, arg,
style, style,
flags & ^QAElideOuterQuotes, flags & ^QAElideOuterQuotes,