Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeyxo committed Dec 12, 2024
1 parent e1a05ba commit 77f9422
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion example/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func (g *GenInt) Generate(ctx context.Context, input chan<- any) {
return
default:
input <- i
i += 1
i++
time.Sleep(time.Second * 1)
}
}
Expand Down
1 change: 0 additions & 1 deletion pipeline/node/input.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ func (i *Input) Run(ctx context.Context) error {
defer close(input)
i.impl.Generate(ctx, input)
}()

return nil
}

Expand Down
1 change: 0 additions & 1 deletion pipeline/node/sink.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ func (s *Sink) GetInputs() []string {
}

func (s *Sink) Run() error {

if len(s.inputChannels) == 0 {
return errors.New("no input channels configured")
}
Expand Down
1 change: 0 additions & 1 deletion pipeline/node/transform.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ func (t *Transform) GetOutputBufferSize() int {

// Run non-blocking call that start Transform node action in separated goroutine.
func (t *Transform) Run() error {

if len(t.inputChannels) == 0 {
return fmt.Errorf("no input channels configured for '%s'", t.cfg.name)
}
Expand Down

0 comments on commit 77f9422

Please sign in to comment.