rubocop: fix various Rubocop warnings.

This commit is contained in:
evazion
2021-06-16 18:24:42 -05:00
parent cfe471e0b5
commit 07e23204b6
99 changed files with 412 additions and 374 deletions

View File

@@ -20,7 +20,7 @@ module PostSets
end
def has_blank_wiki?
tag.present? && !wiki_page.present?
tag.present? && wiki_page.nil?
end
def wiki_page
@@ -94,7 +94,7 @@ module PostSets
end
def get_post_count
if %w(json atom xml).include?(format.downcase)
if %w[json atom xml].include?(format.downcase)
# no need to get counts for formats that don't use a paginator
nil
else