From 23c1a021a0c79aecf3d00cfc57dd08a363064d87 Mon Sep 17 00:00:00 2001
From: Oleg Valter <o.a.philippov@gmail.com>
Date: Sun, 2 Feb 2025 00:10:15 +0300
Subject: [PATCH] removed unnecessary comments from user websites maintenance
 tasks & empty 'count'

---
 app/tasks/maintenance/initialize_user_websites_task.rb | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/app/tasks/maintenance/initialize_user_websites_task.rb b/app/tasks/maintenance/initialize_user_websites_task.rb
index 0a0b578ef..6afc112a5 100644
--- a/app/tasks/maintenance/initialize_user_websites_task.rb
+++ b/app/tasks/maintenance/initialize_user_websites_task.rb
@@ -3,15 +3,10 @@
 module Maintenance
   class InitializeUserWebsitesTask < MaintenanceTasks::Task
     def collection
-      # Collection to be iterated over
-      # Must be Active Record Relation or Array
       User.all
     end
 
     def process(user)
-      # The work to be done in a single iteration of the task.
-      # This should be idempotent, as the same element may be processed more
-      # than once if the task is interrupted and resumed.
       unless user.user_websites.where(user_id: user.id, position: 1).size.positive?
         if user.website.present?
           UserWebsite.create!(user_id: user.id, position: 1, label: 'website', url: user.website)
@@ -32,10 +27,5 @@ module Maintenance
         UserWebsite.create!(user_id: user.id, position: 3)
       end
     end
-
-    def count
-      # Optionally, define the number of rows that will be iterated over
-      # This is used to track the task's progress
-    end
   end
 end
-- 
GitLab