Skip to content

Commit

Permalink
Refactor executable.go: Remove unused import and update io.Copy call
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitpaulk committed May 21, 2024
1 parent 0c06d91 commit ed87d78
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions executable/executable.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"bytes"
"errors"
"fmt"
"io/ioutil"
"os"
"path/filepath"
"time"
Expand Down Expand Up @@ -181,7 +180,7 @@ func (e *Executable) setupIORelay(source io.Reader, destination1 io.Writer, dest

e.atleastOneReadDone = true
e.readDone <- true
io.Copy(ioutil.Discard, source) // Let's drain the pipe in case any content is leftover
io.Copy(io.Discard, source) // Let's drain the pipe in case any content is leftover
}()
}

Expand Down

0 comments on commit ed87d78

Please sign in to comment.