Skip to content

Commit

Permalink
Remove unnecessary comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Faithfulness Alamu committed Dec 3, 2020
1 parent 61ae8c5 commit 1ad54dd
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion commands/copy.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ func (r *copyRunner) run(_ *cobra.Command, _ []string) error {
// It returns an error if there is more data to be read.
func readNoMoreThan(r io.Reader, max int64) ([]byte, error) {
var data bytes.Buffer
// try to read one byte more than the max
n, err := data.ReadFrom(io.LimitReader(r, max+1))
if err != nil {
return nil, err
Expand Down

0 comments on commit 1ad54dd

Please sign in to comment.