From 0ff4053f89000bdc6f1872e800aba34658938348 Mon Sep 17 00:00:00 2001 From: Marin Atanasov Nikolov Date: Wed, 22 May 2024 13:54:13 +0300 Subject: [PATCH] migrate: remove redundant error check --- migrate/migrations.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/migrate/migrations.go b/migrate/migrations.go index 289735270..1a7ea5668 100644 --- a/migrate/migrations.go +++ b/migrate/migrations.go @@ -96,10 +96,6 @@ func (m *Migrations) Discover(fsys fs.FS) error { } migration := m.getOrCreateMigration(name) - if err != nil { - return err - } - migration.Comment = comment migrationFunc := NewSQLMigrationFunc(fsys, path)