Skip to content

Commit 1190090

Browse files
author
Sophia Marie Terry
committed
CLOUDP-328960: Graceful return for custom method edge case
1 parent 1a556b8 commit 1190090

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ export default (input, _, { path }) => {
2121
obj = input.post;
2222
} else if (input.get) {
2323
obj = input.get;
24+
} else {
25+
return;
2426
}
2527

2628
if (hasException(obj, RULE_NAME)) {

0 commit comments

Comments
 (0)