Skip to content

Commit c2eb288

Browse files
additional checks
1 parent be645e7 commit c2eb288

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ const RULE_NAME = 'xgen-IPA-114-error-responses-refer-to-api-error';
1818
* @param {object} context - The context object containing path and document information
1919
*/
2020
export default (input, _, { path, documentInventory }) => {
21-
try {
2221
const oas = documentInventory.unresolved;
2322
const apiResponseObject = resolveObject(oas, path);
2423
const errorCode = path[path.length - 1];
@@ -35,10 +34,6 @@ export default (input, _, { path, documentInventory }) => {
3534
}
3635

3736
collectAdoption(path, RULE_NAME);
38-
} catch(e) {
39-
handleInternalError(RULE_NAME, path, e);
40-
}
41-
4237
};
4338

4439
function checkViolationsAndReturnErrors(apiResponseObject, oas, path, errorCode) {

0 commit comments

Comments
 (0)