mirror of
https://github.com/arthurfiorette/axios-cache-interceptor.git
synced 2025-12-08 17:36:16 +00:00
Remove redundant condition check in waiting-timeout
The condition `timeout <= 0` is redundant since the logic above (lines 30-35) already ensures that timeout is either a positive number or undefined. Addresses comment 2599097978. Co-authored-by: arthurfiorette <47537704+arthurfiorette@users.noreply.github.com>
This commit is contained in:
parent
2fc0f2df4a
commit
8bb7f8e6ca
@ -35,7 +35,7 @@ export function createWaitingTimeout(
|
||||
: undefined;
|
||||
|
||||
// Only create timeout if we have a valid value
|
||||
if (!timeout || timeout <= 0) {
|
||||
if (!timeout) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user