Skip to content

Commit fa14af2

Browse files
1 parent fdee054 commit fa14af2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tools/spectral/ipa/rulesets/functions/utils/resourceEvaluation.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ export function isSingletonResource(resourcePaths) {
6666
if (resourcePaths.length === 1) {
6767
return resourceBelongsToSingleParent(resourcePaths[0]);
6868
}
69-
// TODO check for POST?
7069
const additionalPaths = resourcePaths.slice(1);
7170
return additionalPaths.every(isCustomMethodIdentifier);
7271
}
@@ -83,8 +82,7 @@ export function isStandardResource(resourcePaths) {
8382
return false;
8483
}
8584
if (resourcePaths.length === 1) {
86-
// TODO check for POST?
87-
return !resourceBelongsToSingleParent(resourcePaths[0]);
85+
return true;
8886
}
8987
if (resourcePaths.length === 2) {
9088
return isSingleResourceIdentifier(resourcePaths[1]);

0 commit comments

Comments
 (0)