Skip to content

Commit 3c35506

Browse files
committed
[sc-12720] Resolve SonarCloud issue: Unexpected negated condition
1 parent 2a4db1d commit 3c35506

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/apifetch.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -153,14 +153,7 @@ const executeApiFetch: ExecuteApiFetch = function (
153153
// Fuzzy
154154
let fuzzy = settings?.fuzzy;
155155
if (fuzzy === 'retry') {
156-
// First call, non fuzzy
157-
if (fuzzyRetry !== true) {
158-
fuzzy = false;
159-
}
160-
// Second call, fuzzy
161-
else {
162-
fuzzy = true;
163-
}
156+
fuzzy = fuzzyRetry === true; // true on retry (second call), false on initial call
164157
}
165158

166159
// GET Parameters

0 commit comments

Comments
 (0)