From 1c5692efd0fe85c6391de11dc445116d364fdb6f Mon Sep 17 00:00:00 2001 From: Tassilo Horn Date: Tue, 26 Jun 2007 19:13:00 +0000 Subject: simplify-lastfm-timer-cancelation-and-bump-version.dpatch darcs-hash:20070626191355-c06f4-ae6c018d47f4cd90c8fe1e76b6ad533d9c5b5a08.gz --- emms-lastfm.el | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'emms-lastfm.el') diff --git a/emms-lastfm.el b/emms-lastfm.el index d9e4db6..2d7493c 100644 --- a/emms-lastfm.el +++ b/emms-lastfm.el @@ -131,9 +131,8 @@ paused track resumes) and sets the track submission timer." (defun emms-lastfm-cancel-timer () "Cancels `emms-lastfm-timer' if it is running." - (when emms-lastfm-timer - (emms-cancel-timer emms-lastfm-timer) - (setq emms-lastfm-timer nil))) + (emms-cancel-timer emms-lastfm-timer) + (setq emms-lastfm-timer nil)) (defun emms-lastfm-pause () "Handles things to be done when the player is paused or -- cgit v1.2.3