Skip to content

Commit

Permalink
delete unnecessary function
Browse files Browse the repository at this point in the history
  • Loading branch information
takashi committed Apr 24, 2014
1 parent f068832 commit a61a20e
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions erk.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,11 @@ package main

import "os"

func exitIfError(err error) {
func main() {
var args = os.Args
err := CommandDispatch(args)
if err != nil {
log_error("error %v", err)
os.Exit(1)
}
}

func main() {
var args = os.Args
err := CommandDispatch(args)
exitIfError(err)
}

0 comments on commit a61a20e

Please sign in to comment.