From 5d91ca95f4447e98080b04e2d21b8b4a7e3207f7 Mon Sep 17 00:00:00 2001 From: Matthieu Grieger Date: Thu, 8 Jan 2015 18:17:36 -0800 Subject: [PATCH] Possible fix for crash after skipping more than once --- commands.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/commands.go b/commands.go index 1f6989a..11b2486 100644 --- a/commands.go +++ b/commands.go @@ -195,8 +195,6 @@ func skip(user *gumble.User, username string, admin, playlistSkip bool) { panic(errors.New("An error occurred while stopping the current song.")) } } - } else { - panic(errors.New("An error occurred while adding a skip to the current playlist.")) } } else { user.Send(NO_PLAYLIST_PLAYING_MSG) @@ -220,8 +218,6 @@ func skip(user *gumble.User, username string, admin, playlistSkip bool) { panic(errors.New("An error occurred while stopping the current song.")) } } - } else { - panic(errors.New("An error occurred while adding a skip to the current song.")) } } } else {