Skip to content

Commit

Permalink
get rid on named parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
mandelsoft committed Dec 11, 2024
1 parent 2f3e84b commit 1153b2e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion api/utils/accessio/lookaheadreader.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,12 @@ func (r *LookAheadReader) Read(p []byte) (int, error) {
return r.read(p)
}

func (r *LookAheadReader) read(p []byte) (n int, err error) {
func (r *LookAheadReader) read(p []byte) (int, error) {
var (
n int
err error
)

if r.buffer != nil && r.buffer.Len() > 0 {
// first, consume from buffer
n, err = r.buffer.Read(p)
Expand Down

0 comments on commit 1153b2e

Please sign in to comment.