Skip to content

Commit 4a1e37d

Browse files
committed
Removed unused check of if prop.type.Name is null
1 parent 5523f99 commit 4a1e37d

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/GraphODataTemplateWriter/CodeHelpers/TypeScript/TypeHelperTypeScript.cs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,7 @@ public static class TypeHelperTypeScript
1010

1111
public static string GetTypeString(this OdcmProperty prop)
1212
{
13-
OdcmType type = prop.Type;
14-
string typeStr = UpperCaseFirstChar(type.Name);
15-
16-
17-
if (type == null)
18-
{
19-
typeStr = "id";
20-
}
13+
string typeStr = UpperCaseFirstChar(prop.Type.Name);
2114

2215
switch (typeStr)
2316
{

0 commit comments

Comments
 (0)