From 0377cd42877fefe7e7c8f0cb7c42c933c413e98f Mon Sep 17 00:00:00 2001 From: vsariola <5684185+vsariola@users.noreply.github.com> Date: Tue, 16 Feb 2021 09:32:54 +0200 Subject: [PATCH] fix(cmd/sointu-play): accidentally used := in inner scope, leading to nil error --- cmd/sointu-play/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/sointu-play/main.go b/cmd/sointu-play/main.go index d718fb1..6d29877 100644 --- a/cmd/sointu-play/main.go +++ b/cmd/sointu-play/main.go @@ -41,7 +41,8 @@ func main() { } var audioContext sointu.AudioContext if *play { - audioContext, err := oto.NewContext() + var err error + audioContext, err = oto.NewContext() if err != nil { fmt.Fprintf(os.Stderr, "could not acquire oto AudioContext: %v\n", err) os.Exit(1)