lib/sched/event.rb in sched-0.1.11 vs lib/sched/event.rb in sched-0.1.12
- old
+ new
@@ -57,9 +57,10 @@
def exists?
client.events.map(&:session_key).include?(session_key) ? true : false
end
def destroy
+ return unless exists?
client.request("session/del", session_key: session_key)
end
end
end