Skip to content

Commit b7a0de6

Browse files
CopilotYunchuWang
andcommitted
Remove unnecessary cast - GetSpecialType returns INamedTypeSymbol
Co-authored-by: YunchuWang <[email protected]>
1 parent c94763f commit b7a0de6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Generators/AzureFunctions/DurableFunction.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public static bool TryParse(SemanticModel model, MethodDeclarationSyntax method,
146146

147147
// For void returns, pass a dummy object type since the constructor needs an ITypeSymbol
148148
// but the ReturnsVoid flag will ensure it's not actually used for code generation
149-
ITypeSymbol returnTypeForConstructor = returnSymbol ?? (ITypeSymbol)model.Compilation.GetSpecialType(SpecialType.System_Object);
149+
ITypeSymbol returnTypeForConstructor = returnSymbol ?? model.Compilation.GetSpecialType(SpecialType.System_Object);
150150

151151
function = new DurableFunction(fullTypeName!, name, kind, parameter, returnTypeForConstructor, returnsVoid, requiredNamespaces);
152152
return true;

0 commit comments

Comments
 (0)