Skip to content

Commit

Permalink
all: gofmt
Browse files Browse the repository at this point in the history
Run standard gofmt command on project root.

- go version go1.10.3 darwin/amd64
  • Loading branch information
whilei committed Jun 16, 2018
1 parent 081fe17 commit e000191
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion sort_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package migrate

import (
"sort"
. "gopkg.in/check.v1"
"sort"
)

type SortSuite struct{}
Expand Down
4 changes: 2 additions & 2 deletions sql-migrate/command_new.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ func CreateMigration(name string) error {
defer f.Close()

if err := tpl.Execute(f, nil); err != nil {
return err;
return err
}

ui.Output(fmt.Sprintf("Created migration %s", pathName))
return nil;
return nil
}
3 changes: 1 addition & 2 deletions sql-migrate/command_skip.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package main

import (
"fmt"
"flag"
"fmt"
"strings"

"github.com/rubenv/sql-migrate"
Expand Down Expand Up @@ -75,7 +75,6 @@ func SkipMigrations(dir migrate.MigrationDirection, dryrun bool, limit int) erro

ui.Output("Skipped 1 migration")


if n == 1 {
ui.Output("Skipped 1 migration")
} else {
Expand Down
2 changes: 1 addition & 1 deletion toapply_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package migrate

import (
"sort"
. "gopkg.in/check.v1"
"sort"
)

var toapplyMigrations = []*Migration{
Expand Down

0 comments on commit e000191

Please sign in to comment.