Simplify version printing

This commit is contained in:
David Wragg committed 2015-03-06 11:15:24 +00:00
1 parent 6404ac30b9
commit 2f7e0b5cad
1 file changed
+1 -1
+1 -1
View File
@@ -61,7 +61,7 @@ func main() {
peers = flag.Args()
if justVersion {
io.WriteString(os.Stdout, fmt.Sprintf("weave router %s\n", version))
fmt.Printf("weave router %s\n", version)
os.Exit(0)
}