Skip to content

Conversation

@axunonb
Copy link
Collaborator

@axunonb axunonb commented Oct 16, 2025

Introduce a shortcut to bypass the operation when the duration is empty: if (d.IsEmpty) return this;

Resolves #876

Introduce a shortcut to bypass the operation when the duration is empty:
`if (d.IsEmpty) return this;`
@sonarqubecloud
Copy link

@codecov
Copy link

codecov bot commented Oct 16, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

Impacted file tree graph

@@          Coverage Diff          @@
##            main    #877   +/-   ##
=====================================
  Coverage   68.1%   68.1%           
=====================================
  Files        115     115           
  Lines       4353    4354    +1     
  Branches    1003    1004    +1     
=====================================
+ Hits        2966    2967    +1     
  Misses      1028    1028           
  Partials     359     359           
Files with missing lines Coverage Δ
Ical.Net/DataTypes/CalDateTime.cs 93.3% <100.0%> (+<0.1%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@axunonb axunonb requested a review from minichma October 16, 2025 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Optimization: Skip CalDateTime.Add(Duration) for Empty Durations

3 participants