Skip to content

Commit 30dfe13

Browse files
author
John Haley
committed
Fix docs for methods that don't have a return value
1 parent 42157d7 commit 30dfe13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

generate/lib/write_api_docs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ var writeApiDocs = function(apiData, path) {
120120
.join(", ") + ").then(function(" + returnName + ") {\n";
121121
if (returnName) {
122122
pageBody += " // Use " + returnName + "\n";
123-
} else if (fdata.return.description) {
123+
} else if (fdata.return && fdata.return.description) {
124124
pageBody += " // " + fdata.return.description + "\n";
125125
} else {
126126
pageBody += " // method complete"

0 commit comments

Comments
 (0)