From d1cae5c2973b2bfe5fb672c9fdd568dd90a75029 Mon Sep 17 00:00:00 2001 From: Rowan Goemans Date: Sun, 5 Nov 2017 01:54:59 +0100 Subject: -- Added support for null in the comment generation. --- src/DocGen/CGen.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/DocGen/CGen.ts') diff --git a/src/DocGen/CGen.ts b/src/DocGen/CGen.ts index d6c45cf..13ecbf1 100644 --- a/src/DocGen/CGen.ts +++ b/src/DocGen/CGen.ts @@ -147,7 +147,7 @@ export default class CGen implements IDocGen { if (this.returnTemplate.trim().length !== 0 && this.retVals.length > 0) { if (this.includeTypeAtReturn === false) { - this.retVals = this.retVals.map((t) => t === "true" || t === "false" ? t : ""); + this.retVals = this.retVals.map((t) => t === "true" || t === "false" || t === "null" ? t : ""); } this.generateFromTemplate(lines, this.templateTypeReplace, this.returnTemplate, this.retVals); -- cgit v1.2.3