Simplify printing

This commit is contained in:
Bryan Boreham committed 2015-04-10 14:46:31 +01:00
1 parent c13980af4b
commit d32f328c24
3 files changed
+6 -9

No files matched your search

+1 -2
View File
@@ -7,7 +7,6 @@ import (
"github.com/weaveworks/weave/common/updater"
weavedns "github.com/weaveworks/weave/nameserver"
weavenet "github.com/weaveworks/weave/net"
"io"
"net"
"os"
"os/signal"
@@ -49,7 +48,7 @@ func main() {
flag.Parse()
if justVersion {
io.WriteString(os.Stdout, fmt.Sprintf("weave DNS %s\n", version))
fmt.Printf("weave DNS %s\n", version)
os.Exit(0)
}