Skip to content

Commit fa2a088

Browse files
committed
fix: improve description formatting in SchemaFormatters
1 parent 9c0a58b commit fa2a088

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/schema-parser/schema-formatters.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -110,15 +110,15 @@ export class SchemaFormatters {
110110
if (!hasMultipleLines) return description;
111111

112112
if (inline) {
113-
return (
114-
lodash.chain(
115-
description.replace(/\//g, "")
113+
return lodash
114+
.chain(
115+
description
116+
.replace(/\//g, "")
116117
.split(/\n/g)
117-
.map((part) => part.trim())
118+
.map((part) => part.trim()),
118119
)
119120
.compact()
120-
.value()
121-
);
121+
.value();
122122
}
123123

124124
return description.replace(/\n$/g, "");

0 commit comments

Comments
 (0)