From 2b4593fcc0c0e4c8b864e1725b125f18e4f13a1e Mon Sep 17 00:00:00 2001 From: Trek H Date: Thu, 13 Jun 2019 23:42:26 +0930 Subject: [PATCH] audio: removed names from returns --- input/audio/audio.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/input/audio/audio.go b/input/audio/audio.go index 25fad00b..702ab35b 100644 --- a/input/audio/audio.go +++ b/input/audio/audio.go @@ -361,15 +361,15 @@ func (d *Device) input() { } // Read reads from the ringbuffer, returning the number of bytes read upon success. -func (d *Device) Read(p []byte) (n int, err error) { +func (d *Device) Read(p []byte) (int, error) { // Ready ringbuffer for read. - _, err = d.rb.Next(rbNextTimeout) + _, err := d.rb.Next(rbNextTimeout) if err != nil { return 0, err } // Read from ring buffer. - n, err = d.rb.Read(p) + n, err := d.rb.Read(p) if err != nil { return 0, err }