Browse Source

Removed unnecessary function

main 1.3.1
Unbewohnte 3 years ago
parent
commit
a0780a1a5d
  1. 12
      main.go

12
main.go

@ -25,8 +25,10 @@ var (
LicenseText string LicenseText string
) )
// Input-validation // parse flags, validate given values
func validateFlags() { func init() {
flag.Parse()
if *LICENSE { if *LICENSE {
fmt.Println(LicenseText) fmt.Println(LicenseText)
os.Exit(0) os.Exit(0)
@ -58,12 +60,6 @@ func validateFlags() {
} }
} }
// parse flags, validate given values
func init() {
flag.Parse()
validateFlags()
}
func main() { func main() {
if SENDING { if SENDING {
// 1) create sender -> 2) wait for a connection ->| // 1) create sender -> 2) wait for a connection ->|

Loading…
Cancel
Save