Skip to content

Files

Latest commit

 

History

History
11 lines (6 loc) · 349 Bytes

no-return-await.md

File metadata and controls

11 lines (6 loc) · 349 Bytes

Pattern: Unnecessary return await

Issue: -

Description

An async function always wraps the return value in a Promise. Using return await just adds extra time before the overreaching promise is resolved without changing the semantics.

Further Reading