File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -560,7 +560,9 @@ export function getOkResponses(
560
560
responses : IResponsesObject ,
561
561
originalRef : string ,
562
562
) : ICodeWithMetadata {
563
- const okResponses = Object . entries ( responses ) . filter ( ( [ key ] ) => key . startsWith ( '2' ) || key === 'default' ) ;
563
+ const okResponses = Object . entries ( responses ) . filter (
564
+ ( [ key ] ) => key . startsWith ( '2' ) || key === 'default' ,
565
+ ) ;
564
566
return getReqResTypes ( okResponses , originalRef ) ;
565
567
}
566
568
@@ -569,8 +571,7 @@ export function getErrorResponses(
569
571
originalRef : string ,
570
572
) : ICodeWithMetadata {
571
573
const errorResponses = Object . entries ( responses ) . filter (
572
- ( [ key ] ) =>
573
- key . startsWith ( '3' ) || key . startsWith ( '4' ) || key . startsWith ( '5' ) ,
574
+ ( [ key ] ) => key . startsWith ( '3' ) || key . startsWith ( '4' ) || key . startsWith ( '5' ) ,
574
575
) ;
575
576
return getReqResTypes ( errorResponses , originalRef ) ;
576
577
}
You can’t perform that action at this time.
0 commit comments