summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvan Jegen <s.jegen@gmail.com>2015-08-21 20:19:02 +0200
committerSilvan Jegen <s.jegen@gmail.com>2015-08-21 20:19:02 +0200
commitb521ffe4f0bd5d9645a50ebb4e1677b298c8fe97 (patch)
tree8173fa933d90ed30179ce30b3a73051f1ab85db2
parent1fd8119b4a5c723c96d45c0f373377ae3a8ad20f (diff)
Remove unneeded variable assignment
-rw-r--r--gwic.go3
1 files changed, 1 insertions, 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