Skip to content

Commit

Permalink
Removed unnecessary function
Browse files Browse the repository at this point in the history
  • Loading branch information
Unbewohnte committed Sep 30, 2021
1 parent 00729e0 commit a0780a1
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ var (
LicenseText string
)

// Input-validation
func validateFlags() {
// parse flags, validate given values
func init() {
flag.Parse()

if *LICENSE {
fmt.Println(LicenseText)
os.Exit(0)
Expand Down Expand Up @@ -58,12 +60,6 @@ func validateFlags() {
}
}

// parse flags, validate given values
func init() {
flag.Parse()
validateFlags()
}

func main() {
if SENDING {
// 1) create sender -> 2) wait for a connection ->|
Expand Down

0 comments on commit a0780a1

Please sign in to comment.