rubocop: fix various style issues.

This commit is contained in:
evazion
2019-12-22 16:21:58 -06:00
parent 09f6a84660
commit 309821bf73
288 changed files with 912 additions and 962 deletions

View File

@@ -1,5 +1,5 @@
class PostArchive < ApplicationRecord
class RevertError < Exception ; end
class RevertError < Exception; end
extend Memoist
belongs_to :post
@@ -102,7 +102,7 @@ class PostArchive < ApplicationRecord
end
def visible?
post && post.visible?
post&.visible?
end
def diff(version = nil)
@@ -135,10 +135,10 @@ class PostArchive < ApplicationRecord
:removed_tags => removed_tags,
:obsolete_added_tags => added_tags - latest_tags,
:obsolete_removed_tags => removed_tags & latest_tags,
:unchanged_tags => new_tags & old_tags,
:unchanged_tags => new_tags & old_tags
}
end
def changes
delta = {
:added_tags => added_tags,