Simplifies promise handling in the saveCharacterData loop by removing unnecessary wrapping.
What changed?
The promise handling in the saveCharacterData loop was simplified by directly pushing the promise returned by saveCharacterData into the promises array, instead of wrapping it in a then block.
How to test?
The change does not alter the behavior of the code. However, to ensure everything is working correctly, run the existing tests and verify that all functionalities related to saving character data are operating as expected.
Why make this change?
The change was made to simplify the code. Unwrapping the promise handling makes the code easier to read and maintain without affecting its functionality.
TL;DR
Simplifies promise handling in the saveCharacterData loop by removing unnecessary wrapping.
What changed?
The promise handling in the saveCharacterData loop was simplified by directly pushing the promise returned by saveCharacterData into the promises array, instead of wrapping it in a then block.
How to test?
The change does not alter the behavior of the code. However, to ensure everything is working correctly, run the existing tests and verify that all functionalities related to saving character data are operating as expected.
Why make this change?
The change was made to simplify the code. Unwrapping the promise handling makes the code easier to read and maintain without affecting its functionality.