lib/lita/handlers/locker_resources.rb in lita-locker-1.1.1 vs lib/lita/handlers/locker_resources.rb in lita-locker-1.2.0

- old
+ new

@@ -114,10 +114,10 @@ def show(response) name = response.match_data['resource'] return response.reply(t('resource.does_not_exist', name: name)) unless Resource.exists?(name) r = Resource.new(name) resp = t('resource.desc', name: name, state: r.state.value) - if r.labels.count.positive? + if r.labels.count > 0 resp += ', used by: ' r.labels.each do |label| resp += Label.new(label).id end end