Skip to content

Commit 36953d5

Browse files
CLOUDP-331821: Address review comment
1 parent 1904ad8 commit 36953d5

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

tools/spectral/ipa/rulesets/functions/utils/validations/validateOperationIdAndReturnErrors.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,11 @@ export function validateOperationIdAndReturnErrors(methodName, resourcePath, ope
4949
expectedOperationId
5050
);
5151
errors.push(...overrideErrors);
52-
} else {
53-
if (hasOperationIdOverride(operationObject)) {
54-
errors.push({
55-
path: operationIdOverridePath,
56-
message: REMOVE_OP_ID_OVERRIDE_ERROR_MESSAGE,
57-
});
58-
}
52+
} else if (hasOperationIdOverride(operationObject)) {
53+
errors.push({
54+
path: operationIdOverridePath,
55+
message: REMOVE_OP_ID_OVERRIDE_ERROR_MESSAGE,
56+
});
5957
}
6058
return errors;
6159
}

0 commit comments

Comments
 (0)