Skip to content

Commit 5f0748a

Browse files
committed
Prefer is over == when working with constant values
This was previously applied to most scenarios (e6bd2b7), but missed in this scenario.
1 parent b0ca6fa commit 5f0748a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

OnTopic/Mapping/TopicMappingService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ private async Task<object> MapAsync(
339339
if (cache.TryGetValue(topic.Id, target.GetType(), out var cacheEntry)) {
340340
associations = cacheEntry.GetMissingAssociations(associations);
341341
target = cacheEntry.MappedTopic;
342-
if (associations == AssociationTypes.None) {
342+
if (associations is AssociationTypes.None) {
343343
return cacheEntry.MappedTopic;
344344
}
345345
cacheEntry.AddMissingAssociations(associations);

0 commit comments

Comments
 (0)