Skip to content

Commit

Permalink
fix(migrate): type MigrationGroup should be used as a value rather th…
Browse files Browse the repository at this point in the history
…an a pointer
  • Loading branch information
mlevieux committed Jul 4, 2022
1 parent fb43935 commit 649da1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions migrate/migration.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,11 +232,11 @@ type MigrationGroup struct {
Migrations MigrationSlice
}

func (g *MigrationGroup) IsZero() bool {
func (g MigrationGroup) IsZero() bool {
return g.ID == 0 && len(g.Migrations) == 0
}

func (g *MigrationGroup) String() string {
func (g MigrationGroup) String() string {
if g.IsZero() {
return "nil"
}
Expand Down

0 comments on commit 649da1b

Please sign in to comment.