Skip to content

Commit

Permalink
Fix Rubocop offense
Browse files Browse the repository at this point in the history
  • Loading branch information
MrSerth committed Oct 25, 2024
1 parent 2467596 commit 547daed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/services/task_service/handle_groups.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def execute
def handle_groups
return unless @group_tasks_params

groups = @group_tasks_params[:group_ids].filter(&:present?).map(&:to_i).map {|gid| Group.find(gid) }
groups = @group_tasks_params[:group_ids].compact_blank.map(&:to_i).map {|gid| Group.find(gid) }
remove_groups(@task.groups - groups)
add_groups(groups - @task.groups)
end
Expand Down

0 comments on commit 547daed

Please sign in to comment.