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 a34d3ba commit 1ecb385
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/libs/actions/PersistedRequests.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import isEqual from 'lodash/isEqual';
import Onyx from 'react-native-onyx';
import Log from '@libs/Log';
import * as PersistedRequests from '@userActions/PersistedRequests';
import ONYXKEYS from '@src/ONYXKEYS';
import type {Request} from '@src/types/onyx';

Expand All @@ -22,7 +21,7 @@ function clear() {
function save(requestToPersist: Request) {
persistedRequests.push(requestToPersist);
Onyx.set(ONYXKEYS.PERSISTED_REQUESTS, persistedRequests).then(() => {
Log.info(`[SequentialQueue] '${requestToPersist.command}' command queued. Queue length is ${PersistedRequests.getLength()}`);
Log.info(`[SequentialQueue] '${requestToPersist.command}' command queued. Queue length is ${getLength()}`);

Check failure on line 24 in src/libs/actions/PersistedRequests.ts

View workflow job for this annotation

GitHub Actions / Run ESLint

'getLength' was used before it was defined
});
}

Expand Down

0 comments on commit 1ecb385

Please sign in to comment.