mirror of
https://github.com/mumble-voip/grumble.git
synced 2025-12-20 06:10:00 -08:00
go fmt
This commit is contained in:
parent
083163daf9
commit
20eba760e5
15 changed files with 163 additions and 163 deletions
|
|
@ -61,10 +61,10 @@ func newBlobReader(rc io.ReadCloser, key string) (*blobReader, error) {
|
|||
// mismatch.
|
||||
func (r *blobReader) Read(b []byte) (int, error) {
|
||||
n, err := r.rc.Read(b)
|
||||
_, werr := r.hash.Write(b[:n])
|
||||
if werr != nil {
|
||||
return 0, werr
|
||||
}
|
||||
_, werr := r.hash.Write(b[:n])
|
||||
if werr != nil {
|
||||
return 0, werr
|
||||
}
|
||||
if err != io.EOF {
|
||||
return n, err
|
||||
}
|
||||
|
|
@ -81,4 +81,4 @@ func (r *blobReader) Read(b []byte) (int, error) {
|
|||
// This Close method simply closes the wrapped io.ReadCloser.
|
||||
func (r *blobReader) Close() error {
|
||||
return r.rc.Close()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue