Skip to content

Commit

Permalink
Cleaning (#3727)
Browse files Browse the repository at this point in the history
  • Loading branch information
tjayrush authored May 31, 2024
1 parent 78cd7b8 commit 459b670
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/apps/chifra/internal/names/handle_autoname.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,12 @@ func (opts *NamesOptions) HandleAutoname() error {
}

if opts.Globals.IsApiMode() {
_ = output.StreamMany(context.Background(), func(modelChan chan types.Modeler, errorChan chan error) {
fetchData := func(modelChan chan types.Modeler, errorChan chan error) {
modelChan <- &types.Message{
Msg: message,
}
}, opts.Globals.OutputOpts())
}
_ = output.StreamMany(context.Background(), fetchData, opts.Globals.OutputOpts())
}
return nil
}
Expand Down
5 changes: 3 additions & 2 deletions src/apps/chifra/internal/names/handle_clean.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,12 @@ func (opts *NamesOptions) HandleClean() error {
}

if opts.Globals.IsApiMode() {
_ = output.StreamMany(context.Background(), func(modelChan chan types.Modeler, errorChan chan error) {
fetchData := func(modelChan chan types.Modeler, errorChan chan error) {
modelChan <- &types.Message{
Msg: message,
}
}, opts.Globals.OutputOpts())
}
_ = output.StreamMany(context.Background(), fetchData, opts.Globals.OutputOpts())
}
return err
}
Expand Down
1 change: 1 addition & 0 deletions src/dev_tools/goMaker/generated/handlers.csv
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
path,internal,handler,type,order
list/handle_count,,HandleCount,Monitor,1
list/handle_bounds,,HandleBounds,Bounds,2
list/handle_show,,HandleShow,Appearance,3
Expand Down

0 comments on commit 459b670

Please sign in to comment.