Skip to content

Commit

Permalink
Simplify boolean logic in TimeZoneInfo (dotnet#112062)
Browse files Browse the repository at this point in the history
  • Loading branch information
xtqqczze authored Feb 1, 2025
1 parent 44167e0 commit c693bfa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1017,7 +1017,7 @@ private TimeZoneInfo(
_supportsDaylightSavingTime = adjustmentRulesSupportDst && !disableDaylightSavingTime;
_adjustmentRules = adjustmentRules;

HasIanaId = _id.Equals(UtcId, StringComparison.OrdinalIgnoreCase) ? true : hasIanaId;
HasIanaId = hasIanaId || _id.Equals(UtcId, StringComparison.OrdinalIgnoreCase);
}

/// <summary>
Expand Down

0 comments on commit c693bfa

Please sign in to comment.