lib/lita/handlers/jira.rb in lita-jira-0.7.2 vs lib/lita/handlers/jira.rb in lita-jira-0.8.0

- old
+ new

@@ -13,10 +13,11 @@ config :context, required: false, type: String, default: '' config :format, required: false, type: String, default: 'verbose' config :ambient, required: false, types: [TrueClass, FalseClass], default: false config :ignore, required: false, type: Array, default: [] config :rooms, required: false, type: Array + config :use_ssl, required: false, types: [TrueClass, FalseClass], default: true include ::JiraHelper::Issue include ::JiraHelper::Misc include ::JiraHelper::Regex include ::JiraHelper::Utility @@ -107,10 +108,10 @@ log.error('JIRA HTTPError') response.reply(t('error.request')) return end - return response.reply(t('myissues.empty')) unless issues.size > 0 + return response.reply(t('myissues.empty')) if issues.empty? response.reply(format_issues(issues)) end def ambient(response)