Skip to content

Commit e61af44

Browse files
lint-js fix
1 parent 577e6c6 commit e61af44

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

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

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
import { evaluateAndCollectAdoptionStatus, handleInternalError } from './utils/collectionUtils.js';
1+
import {
2+
evaluateAndCollectAdoptionStatus,
3+
handleInternalError,
4+
} from './utils/collectionUtils.js';
25

36
const RULE_NAME = 'xgen-IPA-114-api-error-has-bad-request-detail';
47

@@ -59,11 +62,5 @@ function checkViolationsAndReturnErrors(apiErrorSchema, documentInventory, path)
5962
return [];
6063
} catch (e) {
6164
return handleInternalError(RULE_NAME, path, e);
62-
return [
63-
{
64-
path,
65-
message: `Internal error during validation: ${e.message}`,
66-
},
67-
];
6865
}
6966
}

0 commit comments

Comments
 (0)