Skip to content

Commit 1790bab

Browse files
authored
Merge pull request #52 from stainless-sdks/meorphis-patch-1
fix: fix diagnostic iteration
2 parents 8fb459c + bd8ce45 commit 1790bab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/cmd/dev.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ func (m BuildModel) fetchDiagnostics() tea.Cmd {
210210
diagnostics := m.cc.client.Builds.Diagnostics.ListAutoPaging(m.ctx, m.build.ID, stainless.BuildDiagnosticListParams{
211211
Limit: stainless.Float(100),
212212
})
213-
if diagnostics.Next() {
213+
for diagnostics.Next() {
214214
diag := diagnostics.Current()
215215
if !diag.Ignored {
216216
diags = append(diags, diag)

0 commit comments

Comments
 (0)