From f3f273879f44948ac902847fcbcaca23925c6819 Mon Sep 17 00:00:00 2001 From: Daniel Schmidt Date: Fri, 6 Mar 2026 12:15:02 +0100 Subject: [PATCH] fix: replace interface{} with any in migrate views --- internal/command/views/migrate.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/command/views/migrate.go b/internal/command/views/migrate.go index 73683a19e3..02fa64e9e7 100644 --- a/internal/command/views/migrate.go +++ b/internal/command/views/migrate.go @@ -336,8 +336,8 @@ type MigrateApplyJSON struct { var _ MigrateApply = (*MigrateApplyJSON)(nil) -func (v *MigrateApplyJSON) output(eventType string, data interface{}) { - payload := map[string]interface{}{ +func (v *MigrateApplyJSON) output(eventType string, data any) { + payload := map[string]any{ "type": eventType, "data": data, } @@ -350,7 +350,7 @@ func (v *MigrateApplyJSON) Applying(id string) { } func (v *MigrateApplyJSON) Progress(sm migrate.SubMigration, filenames []string) { - v.output("progress", map[string]interface{}{ + v.output("progress", map[string]any{ "name": sm.Name, "files": filenames, }) @@ -383,7 +383,7 @@ func (v *MigrateApplyJSON) DryRunSummary(changes int, files int) { } func (v *MigrateApplyJSON) StepHeader(index, total int, sm migrate.SubMigration) { - v.output("step_header", map[string]interface{}{ + v.output("step_header", map[string]any{ "index": index, "total": total, "name": sm.Name,