Skip to content

Commit 0a25450

Browse files
change name check when search mapping by name
1 parent 602f0e7 commit 0a25450

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

QueryMappings/DevTeam.QueryMappings/src/Base/BaseMapping.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public bool Is<TFirst, TSecond>(string? name = null)
109109
/// <returns>Result of comparison that signalizes if current mapping has the same direction.</returns>
110110
public bool Is(Type from, Type to, string? name = null)
111111
{
112-
if (!string.IsNullOrEmpty(name) && Name != name)
112+
if (name != null && Name != name)
113113
return false;
114114

115115
return from == From && to == To;

0 commit comments

Comments
 (0)