lib/rubocop/cop/cop.rb in rubocop-0.41.2 vs lib/rubocop/cop/cop.rb in rubocop-0.42.0
- old
+ new
@@ -215,20 +215,20 @@
!relevant_file?(file)
end
def style_guide_url
url = cop_config['StyleGuide']
- (url.nil? || url.empty?) ? nil : url
+ url.nil? || url.empty? ? nil : url
end
def reference_url
url = cop_config['Reference']
- (url.nil? || url.empty?) ? nil : url
+ url.nil? || url.empty? ? nil : url
end
def details
details = cop_config && cop_config['Details']
- (details.nil? || details.empty?) ? nil : details
+ details.nil? || details.empty? ? nil : details
end
private
def annotate_message(message)