pkg/services: fix ineffassign issues

This commit is contained in:
Mario Trangoni
2018-04-23 19:28:54 +02:00
parent 3a48ea8dde
commit 6eb00000fe
13 changed files with 28 additions and 35 deletions
@@ -27,7 +27,7 @@ func TestMigrations(t *testing.T) {
sqlutil.CleanDB(x)
has, err := x.SQL(sql).Get(&r)
_, err = x.SQL(sql).Get(&r)
So(err, ShouldNotBeNil)
mg := NewMigrator(x)
@@ -36,7 +36,7 @@ func TestMigrations(t *testing.T) {
err = mg.Start()
So(err, ShouldBeNil)
has, err = x.SQL(sql).Get(&r)
has, err := x.SQL(sql).Get(&r)
So(err, ShouldBeNil)
So(has, ShouldBeTrue)
expectedMigrations := mg.MigrationsCount() - 2 //we currently skip to migrations. We should rewrite skipped migrations to write in the log as well. until then we have to keep this