Skip to content

Commit f3d3d79

Browse files
prettier fix
1 parent c91b7b9 commit f3d3d79

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

tools/spectral/ipa/rulesets/functions/createMethodRequestBodyIsGetResponse.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import {
22
getResourcePathItems,
33
getResponseOfGetMethodByMediaType,
4-
isCustomMethodIdentifier, isResourceCollectionIdentifier, isSingletonResource,
4+
isCustomMethodIdentifier,
5+
isResourceCollectionIdentifier,
6+
isSingletonResource,
57
} from './utils/resourceEvaluation.js';
68
import { resolveObject } from './utils/componentUtils.js';
79
import { isDeepEqual, omitDeep } from './utils/compareUtils.js';
@@ -19,11 +21,7 @@ export default (input, opts, { path, documentInventory }) => {
1921
const resourcePaths = getResourcePathItems(resourcePath, oas.paths);
2022

2123
const isResourceCollection = isResourceCollectionIdentifier(resourcePath) && !isSingletonResource(resourcePaths);
22-
if (
23-
isCustomMethodIdentifier(resourcePath) ||
24-
!isResourceCollection ||
25-
!mediaType.endsWith('json')
26-
) {
24+
if (isCustomMethodIdentifier(resourcePath) || !isResourceCollection || !mediaType.endsWith('json')) {
2725
return;
2826
}
2927

0 commit comments

Comments
 (0)