next.js
fedcafab - Remove unnecessary 'await' from writeSema.release() call (#63117)

Commit
2 years ago
Remove unnecessary 'await' from writeSema.release() call (#63117) ### What? This PR removes an unnecessary await keyword from the writeSema.release() call. The release method does not return a promise, hence awaiting it is not required. ### Why? Awaiting on writeSema.release() which does not return a promise can lead to confusion and potentially hinder performance. By removing the await keyword, the code is simplified and aligns with the intended synchronous nature of the release method. ### How? Reviewed the writeSema.release() method implementation to confirm it does not return a promise. Removed the await keyword from the writeSema.release() call to ensure the code correctly reflects the synchronous operation. Co-authored-by: righthot <righthot@everon.co.kr> Co-authored-by: Steven <steven@ceriously.com>
Author
Parents
Loading