From e73683b134f2e3fa720704cf76c161febc91ab79 Mon Sep 17 00:00:00 2001 From: Andrea Angiolillo Date: Thu, 8 Oct 2026 11:53:24 +0100 Subject: [PATCH] refactor: simply bool expression --- .../ipa/rulesets/functions/IPA113SingletonHasUpdateMethod.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/spectral/ipa/rulesets/functions/IPA113SingletonHasUpdateMethod.js b/tools/spectral/ipa/rulesets/functions/IPA113SingletonHasUpdateMethod.js index 2a5f2760c1..889a29cb42 100644 --- a/tools/spectral/ipa/rulesets/functions/IPA113SingletonHasUpdateMethod.js +++ b/tools/spectral/ipa/rulesets/functions/IPA113SingletonHasUpdateMethod.js @@ -17,7 +17,7 @@ export default (input, opts, { path, documentInventory, rule }) => { const resourcePath = path[1]; const resourcePathItems = getResourcePathItems(resourcePath, oas.paths); - if (!(isResourceCollectionIdentifier(resourcePath) && isSingletonResource(resourcePathItems))) { + if (!isResourceCollectionIdentifier(resourcePath) || !isSingletonResource(resourcePathItems)) { return; }