Skip to content

Commit c8b8786

Browse files
committed
chore: improve readability
1 parent 13c945b commit c8b8786

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/service-module/service-module.mutations.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,11 @@ export default function makeServiceMutations() {
403403
const isIdMethodPending = state[`isId${uppercaseMethod}Pending`] as ServiceState['isIdCreatePending']
404404
// if `id` is an array, ensure it doesn't have duplicates
405405
const ids = Array.isArray(id) ? [...new Set(id)] : [id]
406-
ids.forEach(id => { if(typeof id === 'number' || typeof id === 'string') isIdMethodPending.push(id) })
406+
ids.forEach(id => {
407+
if (typeof id === 'number' || typeof id === 'string') {
408+
isIdMethodPending.push(id)
409+
}
410+
})
407411
},
408412
unsetIdPending(state, payload: { method: PendingIdServiceMethodName, id: Id | Id[] }): void {
409413
const { method, id } = payload

0 commit comments

Comments
 (0)