Simplify version printing
This commit is contained in:
1 parent
6404ac30b9
commit
2f7e0b5cad
1 file changed
+1
-1
+1
-1
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user