Skip to content

Commit db4012c

Browse files
authored
Add explicit void return type if set by user
1 parent 62d7d4b commit db4012c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/io/outfoxx/typescriptpoet/FunctionSpec.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ private constructor(
104104
codeWriter.emitCode("]")
105105
}
106106

107-
if (returnType != null && returnType != TypeName.VOID) {
107+
if (returnType != null) {
108108
codeWriter.emitCode(CodeBlock.of(": %T", returnType))
109109
}
110110
}

0 commit comments

Comments
 (0)