Skip to content

Commit cb69ad9

Browse files
IsakNaslundBhFraser Greenroyd
authored andcommitted
deleting to much 🐒
1 parent aa817be commit cb69ad9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.ci/code/Versioning_Test/Helpers/CanReplaceMethodWithType.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ private static Type MatchingType(string typeName, string methodName)
8181
Type match = null;
8282
//Splitting by ` to acount for generics
8383
List<Type> matches = types.Where(x => x.Name.Split('`')[0] == methodName).ToList();
84+
if (matches.Count == 1)
85+
match = matches.First();
8486

8587
return match;
8688
}

0 commit comments

Comments
 (0)