Skip to content

Commit

Permalink
Add suggestion from review
Browse files Browse the repository at this point in the history
  • Loading branch information
TharmiganK committed Sep 6, 2024
1 parent 8699389 commit a25606b
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,6 @@ public Optional<FunctionSignatureNode> generateFunctionSignature() {
FunctionReturnTypeGeneratorImp functionReturnType = getFunctionReturnTypeGenerator();
Optional<ReturnTypeDescriptorNode> returnType = functionReturnType.getReturnType();
diagnostics.addAll(functionReturnType.getDiagnostics());
if (returnType.isEmpty()) {
return Optional.empty();
}

//create function signature node
return returnType.map(returnTypeDescriptorNode -> NodeFactory.createFunctionSignatureNode(
Expand Down

0 comments on commit a25606b

Please sign in to comment.