Open krishna9304 opened 2 years ago
Hey @krishna9304 @GMishx , I want to work on this issue, May you please tell me what will be the best way to solve or fix this out and also, please assign me this issue. 🚀
Hello @pulkit-30 , As you can see in the example, we want to minimise promise chaining and use async-await
wherever possible in the project. Also, make sure to follow the contribution guidelines from https://github.com/fossology/fossology/blob/master/CONTRIBUTING.md before creating a PR.
Hello @pulkit-30, As you can see in the example, we want to minimize promise chaining and use
async-await
wherever possible in the project. Also, make sure to follow the contribution guidelines from https://github.com/fossology/fossology/blob/master/CONTRIBUTING.md before creating a PR.
Great, let's do it 🚀
@krishna9304 @pulkit-30 , one of you want to work on the issue?
if @pulkit-30 is not working on it, i can pick it up!!
if @pulkit-30 is not working on it, i can pick it up!!
Yep, I am working on this
Hi! If this issue is still available, Can I work on it? @GMishx
Description
Using “async - await” instead of “.then” wherever possible.
Reason:
It's better to use async/await where possible, and minimise promise chaining. Async/await makes JavaScript code more accessible to developers that aren't as familiar with JavaScript, and much easier to read.]
Example screenshots
Using ".then"
Using "async-await"
Status: Discussion required cc: @Shruti3004 @GMishx @sjha2048