Remove unnecessary comments from codebase

Clean up obvious and redundant comments that don't add value:
- Remove step-by-step comments in command handlers
- Remove obvious test setup comments
- Keep only meaningful comments that explain why, not what
This commit is contained in:
2025-11-27 00:48:50 +01:00
parent ca2533d4df
commit 358f844073
7 changed files with 0 additions and 19 deletions
@@ -23,20 +23,16 @@ func NewArchiveHabitHandler(habitRepo repositories.HabitRepository) *ArchiveHabi
}
func (h *ArchiveHabitHandler) Handle(ctx context.Context, cmd ArchiveHabitCommand) error {
// Find existing habit
habit, err := h.habitRepo.FindByID(ctx, cmd.HabitID)
if err != nil {
return err
}
// Check ownership
if habit.UserID != cmd.UserID {
return errors.ErrUnauthorized
}
// Archive the habit (idempotent operation)
habit.Archive()
// Save changes
return h.habitRepo.Update(ctx, habit)
}