Skip to content
This repository was archived by the owner on Feb 10, 2025. It is now read-only.
This repository was archived by the owner on Feb 10, 2025. It is now read-only.

Suboptimal use of Promise in client.js #257

@AndriySymon

Description

@AndriySymon

What is the current behavior?

If the current behavior is a bug, please provide the exact steps to reproduce.

What is the expected behavior?

Additional context
Add any other context about the problem here.

The methods buildMap(), start(), uploadImage() use new Promise, although Promise.all() returns a Promise anyway.
For example, in start():
return new Promise(async (resolve) => {
const assets = await Promise.all(this.loadAssets());
resolve(assets);
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions