Skip to content

Commit fd040a8

Browse files
committed
chore: ts and lint
1 parent 50a0f69 commit fd040a8

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/ramps-controller/src/RampsController.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ describe('RampsController', () => {
332332

333333
// Request A: will be aborted but takes time to settle
334334
const fetcherA = async (signal: AbortSignal): Promise<string> => {
335-
return new Promise<string>((resolve, reject) => {
335+
return new Promise<string>((_resolve, reject) => {
336336
signal.addEventListener('abort', () => {
337337
// Simulate async cleanup delay before rejecting
338338
setTimeout(() => {

packages/ramps-controller/src/RampsController.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,8 @@ export class RampsController extends BaseController<
327327
requests[cacheKey] = requestState;
328328

329329
// Evict oldest entries if cache exceeds max size
330-
const keys = Object.keys(requests) as string[];
330+
const keys = Object.keys(requests);
331+
331332
if (keys.length > maxSize) {
332333
// Sort by timestamp (oldest first)
333334
const sortedKeys = keys.sort((a, b) => {

0 commit comments

Comments
 (0)