Skip to content

Commit c761162

Browse files
author
Nicolás Gudiño
committed
Fix typo on adding extension for downloading audio files
1 parent 2b61a90 commit c761162

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wmiau.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ func (mycli *MyClient) myEventHandler(rawEvt interface{}) {
414414
} else {
415415
ext = ".ogg"
416416
}
417-
path = filepath.Join(userDirectory, evt.Info.ID+exts)
417+
path = filepath.Join(userDirectory, evt.Info.ID+ext)
418418
err = os.WriteFile(path, data, 0600)
419419
if err != nil {
420420
log.Error().Err(err).Msg("Failed to save audio")

0 commit comments

Comments
 (0)