Skip to content

Commit

Permalink
suppress nullability warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
smdn committed Apr 1, 2024
1 parent 2e333ea commit f319c4d
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,12 @@ bool includeProfiles
)
{
if (TryLookupClass(classGroupCode, classCode, includeProfiles, out var obj)) {
var prop = obj.Properties.FirstOrDefault(p => p.Code == propertyCode); // TODO: use IReadOnlyDictionary.TryGetValue(TKey, TValue)
var prop = obj
#if !NULL_STATE_STATIC_ANALYSIS_ATTRIBUTES
!
#endif
.Properties
.FirstOrDefault(p => p.Code == propertyCode); // TODO: use IReadOnlyDictionary.TryGetValue(TKey, TValue)

if (prop is not null)
return prop;
Expand Down

0 comments on commit f319c4d

Please sign in to comment.