Skip to content

Commit

Permalink
fix(editor): adjust according to code review
Browse files Browse the repository at this point in the history
closes #214
  • Loading branch information
ostridm committed Sep 20, 2023
1 parent 874e4bf commit aeafda6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import {
SpecTreeRequestBodyParam,
SpecTreeNodeParam
} from '../../../models';
import { isOASV2 } from '../../../utils';
import { BaseOasParameterObjectsParser } from '../BaseOasParameterObjectsParser';
import jsonPointer from 'json-pointer';
import { OpenAPIV2 } from '@har-sdk/core';
Expand Down Expand Up @@ -102,7 +101,7 @@ export class OasV2ParameterObjectsParser extends BaseOasParameterObjectsParser<

if (operation.consumes?.length) {
mediaTypes = operation.consumes;
} else if (isOASV2(this.doc) && this.doc.consumes?.length) {
} else if (this.doc.consumes?.length) {
mediaTypes = this.doc.consumes;
}

Expand Down
5 changes: 0 additions & 5 deletions packages/editor/src/utils/index.ts

This file was deleted.

0 comments on commit aeafda6

Please sign in to comment.