Skip to content

Commit 3f21770

Browse files
committed
Fix linting issues
1 parent 8ec0f54 commit 3f21770

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

eventcatalog/src/components/SchemaExplorer/JSONSchemaViewer.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { useState, useEffect, useRef, useMemo } from 'react';
2-
import $RefParser from "@apidevtools/json-schema-ref-parser";
2+
import $RefParser from '@apidevtools/json-schema-ref-parser';
33

44
interface JSONSchemaViewerProps {
55
schema: any;
@@ -102,11 +102,9 @@ function mergeAllOfSchemas(schemaWithProcessor: any): any {
102102
}
103103

104104
async function processSchema(schema: any, rootSchema?: any): Promise<any> {
105-
106105
if (!schema) return schema;
107106
let dereferencedSchema = await $RefParser.dereference(schema);
108107
return dereferencedSchema;
109-
110108
}
111109

112110
// SchemaProperty component

0 commit comments

Comments
 (0)