Skip to content

Commit 73a7fea

Browse files
committed
oto: refactoring: remove unnecessary type assertions
1 parent b72bf18 commit 73a7fea

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

driver_darwin.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -275,10 +275,7 @@ try:
275275
}
276276

277277
func (c *context) Err() error {
278-
if err := c.err.Load(); err != nil {
279-
return err.(error)
280-
}
281-
return nil
278+
return c.err.Load()
282279
}
283280

284281
func render(inUserData unsafe.Pointer, inAQ _AudioQueueRef, inBuffer _AudioQueueBufferRef) {

0 commit comments

Comments
 (0)