Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.

Commit bb4789a

Browse files
fix: resolve comments remove return
1 parent 93f40a0 commit bb4789a

File tree

1 file changed

+5
-7
lines changed
  • src/features/Apiexplorer/Schema/RecursiveContent/SchemaBodyHeader

1 file changed

+5
-7
lines changed

src/features/Apiexplorer/Schema/RecursiveContent/SchemaBodyHeader/index.tsx

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -145,13 +145,11 @@ const SchemaBodyHeader = ({
145145
<div className={styles.defaultValue}>
146146
<span className={styles.defaultValueLabel}>example: </span>
147147
{Array.isArray(examples) ? (
148-
examples.map((el: string, i: number) => {
149-
return (
150-
<div key={i}>
151-
<span className={styles.schemaDefaultValue}>{el}</span>
152-
</div>
153-
);
154-
})
148+
examples.map((el: string, i: number) => (
149+
<div key={i}>
150+
<span className={styles.schemaDefaultValue}>{el}</span>
151+
</div>
152+
))
155153
) : (
156154
<span className={styles.schemaDefaultValue}>{examples}</span>
157155
)}

0 commit comments

Comments
 (0)