Simplify argument parsing

This commit is contained in:
Adam Harrison committed 2015-02-24 17:59:40 +00:00
1 parent 34f7b5cbd0
commit 4e9e183e0f
1 file changed
+1 -2
+1 -2
View File
@@ -90,11 +90,10 @@ func main() {
} }
if nickName == "" { if nickName == "" {
osHostname, err := os.Hostname() nickName, err = os.Hostname()
if err != nil { if err != nil {
log.Fatal(err) log.Fatal(err)
} }
nickName = osHostname
} }
ourName, err := weave.PeerNameFromUserInput(routerName) ourName, err := weave.PeerNameFromUserInput(routerName)