From b521ffe4f0bd5d9645a50ebb4e1677b298c8fe97 Mon Sep 17 00:00:00 2001 From: Silvan Jegen Date: Fri, 21 Aug 2015 20:19:02 +0200 Subject: Remove unneeded variable assignment --- gwic.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gwic.go b/gwic.go index 427ec05..ec7a7e3 100644 --- a/gwic.go +++ b/gwic.go @@ -32,8 +32,7 @@ func printWithContext(all []string, ind, ctxlen int) { slice = append(slice, all[ind+1:ind+ctxlen]...) } - fstr := strings.Join(slice, "\t") - fmt.Fprintf(tw, "%s\n", fstr) + fmt.Fprintf(tw, "%s\n", strings.Join(slice, "\t")) } var tw *tabwriter.Writer -- cgit v1.2.3