Skip to content

Commit cba12e0

Browse files
committed
Removed unnecessary null check
The method is nullable, so if `topicDto` is null, then the `return topicDto` will return null. This is entirely unnecessary.
1 parent a0b0a96 commit cba12e0

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

OnTopic/Mapping/TopicMappingService.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1050,13 +1050,6 @@ MappedTopicCache cache
10501050
topicDto = await MapAsync(source, mappingType, configuration.IncludeAssociations, cache).ConfigureAwait(false);
10511051
}
10521052

1053-
/*------------------------------------------------------------------------------------------------------------------------
1054-
| Validate results
1055-
\-----------------------------------------------------------------------------------------------------------------------*/
1056-
if (topicDto is null) {
1057-
return null;
1058-
}
1059-
10601053
/*------------------------------------------------------------------------------------------------------------------------
10611054
| Return type
10621055
\-----------------------------------------------------------------------------------------------------------------------*/

0 commit comments

Comments
 (0)