Fixed parseSignature with empty parameter lists.

This commit is contained in:
Richard Moore 2018-08-04 19:34:30 -04:00
parent 7f1fbfc203
commit fcee62a3d9
No known key found for this signature in database
GPG Key ID: 525F70A6FCABC295

View File

@ -911,6 +911,8 @@ function getTypes(coders) {
} }
*/ */
function splitNesting(value: string): Array<any> { function splitNesting(value: string): Array<any> {
value = value.trim();
var result = []; var result = [];
var accum = ''; var accum = '';
var depth = 0; var depth = 0;
@ -931,7 +933,7 @@ function splitNesting(value: string): Array<any> {
} }
} }
} }
result.push(accum); if (accum) { result.push(accum); }
return result; return result;
} }