Pushover: return a hash from self.sounds when no api key configured

fixes #120
This commit is contained in:
joshua stein 2014-01-28 13:19:30 -06:00
parent df75c8f787
commit 6cca9f64e5

View file

@ -7,7 +7,7 @@ class Pushover
@@SOUNDS = {}
def self.sounds
if !@@API_KEY
return
return @@SOUNDS
end
if @@SOUNDS.length <= 1