Skip to content

Commit 91e9e0f

Browse files
committed
fix: replace goto with break to fix compilation error
1 parent 1a2f1fb commit 91e9e0f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

core/http/routes/ui_api.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -487,10 +487,10 @@ func RegisterUIAPIRoutes(app *echo.Echo, cl *config.ModelConfigLoader, ml *model
487487
select {
488488
case <-ctx.Done():
489489
xlog.Warn("Timeout waiting for deletion to complete", "uid", uid)
490-
goto removeConfig
490+
break
491491
default:
492492
if status := galleryService.GetStatus(uid); status != nil && status.Processed {
493-
goto removeConfig
493+
break
494494
}
495495
time.Sleep(100 * time.Millisecond)
496496
}

0 commit comments

Comments
 (0)