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 # update the entire set of preferences
def update_all def update_all
old_preferences = current_user.preferences.each_with_object({}) do |preference, preferences| old_preferences = current_user.preferences.index_by(&:k)
preferences[preference.k] = preference
end
new_preferences = {} new_preferences = {}