-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
refactorCode review and refactoringCode review and refactoring
Description
Description
The current implementation uses a mix of traditional JavaScript Callbacks in the main modules, and Promises in the sub-modules. Furthermore, the use of Promises is not fully consistent across the code, with mostly .then()/.catch() structures and some async / await.
Environment / Versions
Software
- OS: any
- Node.js: any
- whiteflag-api: v1.1
Symptoms and Problem details
The code is less readable and maintainable. Tracing bugs and errors is harder.
Solution
Refactor the source code and use only Promises, in a consistent way.
Metadata
Metadata
Assignees
Labels
refactorCode review and refactoringCode review and refactoring