Skip to content

Commit

Permalink
cmd/atlas/internal/migratelint: fix the way we count changes
Browse files Browse the repository at this point in the history
  • Loading branch information
a8m committed Mar 6, 2025
1 parent fbd28dc commit 63ecb8c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/atlas/internal/migratelint/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,9 @@ func (r *SummaryReport) TotalChanges() int {
var n int
for _, f := range r.Files {
if f.File != nil {
n += len(f.Changes)
for _, c := range f.File.Changes {
n += len(c.Changes)
}
}
}
return n
Expand Down

0 comments on commit 63ecb8c

Please sign in to comment.