From 805b8413d63a1e29bfe67eed3003eedb417bf65e Mon Sep 17 00:00:00 2001 From: mattes Date: Sat, 4 Oct 2014 09:46:29 +0200 Subject: [PATCH] fix typo --- main.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.go b/main.go index c42aced..8e5c8a5 100644 --- a/main.go +++ b/main.go @@ -68,9 +68,9 @@ func main() { case "goto": verifyMigrationsPath(*migrationsPath) - toVerion := flag.Arg(1) - toVerionInt, err := strconv.Atoi(toVerion) - if err != nil || toVerionInt < 0 { + toVersion := flag.Arg(1) + toVersionInt, err := strconv.Atoi(toVersion) + if err != nil || toVersionInt < 0 { fmt.Println("Unable to parse param .") os.Exit(1) } @@ -81,7 +81,7 @@ func main() { os.Exit(1) } - relativeNInt := toVerionInt - int(currentVersion) + relativeNInt := toVersionInt - int(currentVersion) timerStart = time.Now() pipe := pipep.New()