diff options
| author | Rowan Goemans <RB.Goemans@student.han.nl> | 2017-11-05 01:54:59 +0100 |
|---|---|---|
| committer | Christoph Schlosser <christophschlosser@users.noreply.github.com> | 2017-11-05 18:45:08 +0100 |
| commit | 3ebbc6d87cca65c2175266ae4b525a8ae6f8739b (patch) | |
| tree | 7ebae5c7ef7d6ad6d27d3ddd4668c7b4e27ae1b6 /src/DocGen | |
| parent | ec691aad83da0adcf13986fd3d24b213ef963116 (diff) | |
| download | doxdocgen-3ebbc6d87cca65c2175266ae4b525a8ae6f8739b.tar.gz | |
-- Added support for null in the comment generation.
Diffstat (limited to 'src/DocGen')
| -rw-r--r-- | src/DocGen/CGen.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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); |