Skip to content

Commit c994c16

Browse files
committed
chore: remove unnecessary filter
1 parent d216ca9 commit c994c16

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

pkg/migration/list.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ func ListLocalMigrations(migrationsDir string, fsys fs.FS, filter ...func(string
3535
if err != nil && !errors.Is(err, os.ErrNotExist) {
3636
return nil, errors.Errorf("failed to read directory: %w", err)
3737
}
38-
if len(filter) == 0 {
39-
filter = append(filter, func(string) bool { return true })
40-
}
4138
var clean []string
4239
OUTER:
4340
for i, migration := range localMigrations {

0 commit comments

Comments
 (0)