Fix new rubocop warnings

This commit is contained in:
Tom Hughes 2020-03-31 19:08:10 +01:00
parent 97d9e75fe4
commit b5c778b662

View file

@ -25,9 +25,7 @@ module Api
# update the entire set of preferences
def update_all
old_preferences = current_user.preferences.each_with_object({}) do |preference, preferences|
preferences[preference.k] = preference
end
old_preferences = current_user.preferences.index_by(&:k)
new_preferences = {}