diff options
author | matthieu <matthieu.cneude@gmail.com> | 2021-02-25 07:55:21 +0100 |
---|---|---|
committer | matthieu <matthieu.cneude@gmail.com> | 2021-02-25 07:55:21 +0100 |
commit | 2dea2ffed90acc677e5dad04cd0aaf467c11177e (patch) | |
tree | ae950b59cfde275fd49c492f7e309791c3087bdd | |
parent | 4250518c279fe7a52d41dfcda138ccc0a26fa316 (diff) |
Delete useless output
-rw-r--r-- | cmd/devdash.go | 1 | ||||
-rw-r--r-- | internal/project.go | 8 |
2 files changed, 4 insertions, 5 deletions
diff --git a/cmd/devdash.go b/cmd/devdash.go index 7878c3b..e2568e1 100644 --- a/cmd/devdash.go +++ b/cmd/devdash.go @@ -136,7 +136,6 @@ func build(file string, tui *internal.Tui) { // TODO choice between concurency and non concurency // renderFuncs := project.CreateNonConcWidgets() renderFuncs := project.CreateWidgets() - fmt.Println(renderFuncs) if !debug { project.Render(renderFuncs) } diff --git a/internal/project.go b/internal/project.go index 18a46a1..053a106 100644 --- a/internal/project.go +++ b/internal/project.go @@ -1,8 +1,8 @@ package internal -// TODO it's a mess in there between concurrent / non concurrent ways of getting widget render function. -// Initially it was made to go around the limitation of concurrent connection for google analytics. -// To refactor! +// TODO it's a mess in there between concurrent / non concurrent ways of getting widget render functions. +// Initially it was made to go around the limitation of concurrent connection for Google Analytics. +// I feel the absence of generics here... To refactor somehow (using reflection?). import ( "github.com/pkg/errors" @@ -232,7 +232,7 @@ func getChannelRenderers(s service, name string, w Widget, tui *Tui, c chan<- fu } // Create all the widgets and populate them with data. -// Return channels with render functions +// Return slice of widgets func (p *project) CreateNonConcWidgets() [][][]func() error { // TODO: use display.box instead of this shortcut err := p.addTitle(p.tui) |