Skip to content

Commit b9ab587

Browse files
committed
fix: cast duration to number to satisfy TypeScript
1 parent eb91909 commit b9ab587

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/network-controller/src/rpc-service/rpc-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ export class RpcService implements AbstractRpcService {
456456
// (slow-success case from service policy). FailureReason has { error } or { value }.
457457
const duration =
458458
data !== undefined && hasProperty(data, 'duration')
459-
? data.duration
459+
? (data.duration as number)
460460
: undefined;
461461
// For retries-exhausted, data is FailureReason (has error/value).
462462
// For slow-success, data is { duration } — we don't spread it.

0 commit comments

Comments
 (0)