QuentinGruber / h1z1-server

Library used to emulate h1z1 game servers
https://h1emu.com
GNU General Public License v3.0
93 stars 54 forks source link

Change weird syntax in character save #2101

Closed QuentinGruber closed 2 months ago

QuentinGruber commented 2 months ago

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.


QuentinGruber commented 2 months ago

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @QuentinGruber and the rest of your teammates on Graphite Graphite