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(
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
@ -380,7 +380,6 @@ ForceOuterQuotingStyle:
style = ShellEscapeAlwaysQuotingStyle
}
return Quote(
buffer,
arg,
style,
flags & ^QAElideOuterQuotes,