Skip to content

Commit 312a7c6

Browse files
committed
fix: handle closer.Close() return value in sound.go
Fix remaining errcheck issue by discarding the error return value from closer.Close() call.
1 parent cec3c08 commit 312a7c6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

timer/sound.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ func (t *Timer) setAmbientSound() error {
197197
// Close existing stream but be careful with speaker operations
198198
if t.SoundStream != nil {
199199
if closer, ok := t.SoundStream.(interface{ Close() error }); ok {
200-
closer.Close()
200+
_ = closer.Close()
201201
}
202202
t.SoundStream = nil
203203
}

0 commit comments

Comments
 (0)