Skip to content

Conversation

@rfc2822
Copy link
Member

@rfc2822 rfc2822 commented Dec 1, 2025

Only print warning when there actually are exceptions

@rfc2822 rfc2822 self-assigned this Dec 1, 2025
@rfc2822 rfc2822 added the bug Something isn't working label Dec 1, 2025
@rfc2822 rfc2822 requested a review from Copilot December 1, 2025 12:34
@rfc2822 rfc2822 marked this pull request as ready for review December 1, 2025 12:34
@rfc2822 rfc2822 requested a review from a team as a code owner December 1, 2025 12:34
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves the logging accuracy in the AndroidRecurringCalendar.cleanUp() function by only displaying a warning message when there are actually exceptions to drop, rather than always showing the warning when the conditions are met.

Key Changes:

  • Added a conditional check if (original.exceptions.isNotEmpty()) before logging the "Dropping exceptions" warning
  • Prevents misleading warning messages from being logged when no exceptions exist

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Member

@sunkup sunkup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 👍

@rfc2822 rfc2822 merged commit 6e12858 into main Dec 1, 2025
13 checks passed
@rfc2822 rfc2822 deleted the 151-misleading-dropping-exceptions-warning-although-there-are-no-exceptions branch December 1, 2025 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Misleading "Dropping exceptions" warning although there are no exceptions

2 participants