DEV: improve the code readability.

a0e0b1ef4b
This commit is contained in:
Vinoth Kannan 2020-02-11 23:11:59 +05:30
parent 6a7e82c44c
commit b0f72ca1d6
1 changed files with 3 additions and 1 deletions

View File

@ -359,7 +359,9 @@ class PostRevisor
end
POST_TRACKED_FIELDS.each do |field|
@post.public_send("#{field}=", @fields[field]) if @fields.has_key?(field) || (should_create_new_version? && field == "edit_reason")
if @fields.has_key?(field) || (should_create_new_version? && field == "edit_reason")
@post.public_send("#{field}=", @fields[field])
end
end
@post.last_editor_id = @editor.id