Skip to content

Commit

Permalink
[INTERNAL] adjust code style
Browse files Browse the repository at this point in the history
  • Loading branch information
flovogt committed May 19, 2020
1 parent a603004 commit a005fd6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/processors/jsdoc/lib/ui5/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -1250,18 +1250,18 @@ function createAutoDoc(oClassInfo, classComment, node, parser, filename, comment
function generateParamTag(n, type, description, defaultValue){
var s = "@param {" + info.type + "} ";

if(defaultValue !== null){
s+= "[" + varname(n, type, true) + "=";
if(type === "string"){
if (defaultValue !== null) {
s += "[" + varname(n, type, true) + "=";
if (type === "string"){
defaultValue = "\"" + defaultValue + "\"";
}
s+= defaultValue + "]";
s += defaultValue + "]";

} else {
s+= varname(n, type, true);
s += varname(n, type, true);
}

s+=" " + description;
s += " " + description;

return s;
}
Expand Down

0 comments on commit a005fd6

Please sign in to comment.