Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
neilotoole committed Jan 24, 2024
1 parent 1eb07e1 commit 10ee50a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions examples/multicase/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,7 @@ func exec(ctx context.Context, in io.Reader, out io.Writer) error {
for i := range transforms {
go func(i int) {
r, t := rdrs[i], transforms[i]
defer func() {
if closeErr := r.Close(); closeErr != nil {
errCh <- closeErr
}
}()
defer r.Close()

sc := bufio.NewScanner(r)
for sc.Scan() {
Expand Down

0 comments on commit 10ee50a

Please sign in to comment.