From 46851e27faa6ae2b61b823313f0545161b83eacb Mon Sep 17 00:00:00 2001 From: Daniel Jones Date: Fri, 23 May 2014 11:10:06 -0700 Subject: [PATCH] Fix go 1.0 compatibility --- expand.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/expand.go b/expand.go index 2349a1c..6ffe322 100644 --- a/expand.go +++ b/expand.go @@ -87,9 +87,8 @@ func expandEscape(input string) (string, int) { c, w := utf8.DecodeRuneInString(input) if c == '\t' || c == ' ' { return string(c), w - } else { - return "\\" + string(c), w } + return "\\" + string(c), w } // Expand a double quoted string starting after a '\"'