Skip to content

Commit c454e9f

Browse files
hurali97mountiny
andauthored
refactor: make code more readable
Co-authored-by: Vit Horacek <[email protected]>
1 parent ced181b commit c454e9f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/OnyxUtils.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,10 +249,13 @@ function get<TKey extends OnyxKey, TValue extends OnyxValue<TKey>>(key: TKey): P
249249
function multiGet<TKey extends OnyxKey>(keys: CollectionKeyBase[]): Promise<Map<OnyxKey, OnyxValue<TKey>>> {
250250
// Keys that are not in the cache
251251
const missingKeys: OnyxKey[] = [];
252+
252253
// Tasks that are pending
253254
const pendingTasks: Array<Promise<OnyxValue<TKey>>> = [];
255+
254256
// Keys for the tasks that are pending
255257
const pendingKeys: OnyxKey[] = [];
258+
256259
// Data to be sent back to the invoker
257260
const dataMap = new Map<OnyxKey, OnyxValue<TKey>>();
258261

0 commit comments

Comments
 (0)