Skip to content

Commit 2f55188

Browse files
committed
Remove unnecessary argument to readByte
1 parent 7d2d56c commit 2f55188

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

delta.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,14 @@ func patchDelta(start io.ReadSeeker, delta io.Reader) (io.Reader, error) {
6565
var numBytes uint
6666

6767
if (b & 16) > 0 {
68-
numBytes = numBytes | uint(uint(deltar.readByte(true)))
68+
numBytes = numBytes | uint(uint(deltar.readByte()))
6969
}
7070
if (b & 32) > 0 {
71-
numBytes = numBytes | uint((uint(deltar.readByte(true)) << 8))
71+
numBytes = numBytes | uint((uint(deltar.readByte()) << 8))
7272
}
7373

7474
if (b & 64) > 0 {
75-
numBytes = numBytes | uint((uint(deltar.readByte(true)) << 16))
75+
numBytes = numBytes | uint((uint(deltar.readByte()) << 16))
7676
}
7777

7878
// Default to 0x10000 due to overflow
@@ -201,7 +201,7 @@ func (er *errReader) read(buf []byte) int {
201201
}
202202

203203
// Like read(), but expect a single byte
204-
func (er *errReader) readByte(p ...bool) byte {
204+
func (er *errReader) readByte() byte {
205205
b := make([]byte, 1)
206206
n := er.read(b)
207207
if n != 1 && er.err != nil {

0 commit comments

Comments
 (0)