From 16189a364e80975ae9c1cccf58d1cf1a47c5a9c1 Mon Sep 17 00:00:00 2001 From: Yoshida Hiroshi Date: Thu, 7 Nov 2024 15:55:31 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=B3=E3=82=B9=E3=83=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- handler.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/handler.go b/handler.go index 209d825..abe6eab 100644 --- a/handler.go +++ b/handler.go @@ -361,8 +361,7 @@ func opus2ogg(ctx context.Context, opusReader io.Reader, oggWriter io.Writer, sa for { buf := make([]byte, FrameSize) - var n int - n, err = r.Read(buf) + n, err := r.Read(buf) if err != nil { if w, ok := oggWriter.(*io.PipeWriter); ok { w.CloseWithError(err)