Forgotten if clause from yesterday

This commit is contained in:
bigguy345 committed 2026-02-25 20:45:00 +02:00
1 parent 30be75dbae
commit be50fdeda5
1 file changed
+1 -1
@@ -1125,7 +1125,7 @@ public class TokenHoverInfo {
// Return type
TypeInfo returnType = methodInfo.getReturnType();
if (ScriptDocument.INSTANCE.isJavaScript())
if (ScriptDocument.INSTANCE.isJavaScript() && methodInfo.isDeclaration())
addSegment("function ", TokenType.KEYWORD.getHexColor());
else if (returnType != null) {
addTypeSegments(returnType);