Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
tienifr committed Apr 20, 2024
1 parent 1ecb385 commit 7fb8b40
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/libs/actions/PersistedRequests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ function clear() {
return Onyx.set(ONYXKEYS.PERSISTED_REQUESTS, []);
}

function getLength(): number {
return persistedRequests.length;
}

function save(requestToPersist: Request) {
persistedRequests.push(requestToPersist);
Onyx.set(ONYXKEYS.PERSISTED_REQUESTS, persistedRequests).then(() => {
Expand Down Expand Up @@ -51,8 +55,4 @@ function getAll(): Request[] {
return persistedRequests;
}

function getLength(): number {
return persistedRequests.length;
}

export {clear, save, getAll, remove, update, getLength};

0 comments on commit 7fb8b40

Please sign in to comment.