Skip to content
Critiq Docs

Search docs

Search documentation pages and rules

correctness

Unnecessary Return Await

Remove redundant return await

#Metadata

Rule ID
ts.correctness.unnecessary-return-await
Severity
low
Confidence
0.85
Languages
javascript, typescript
Presets
recommended, strict
Stability
stable
Applies to
block
Tags
correctness, rules-catalog

#Why it matters

Remove redundant return await:return await in async functions outside try/catch adds stack overhead without changing behavior.

#Remediation

Remove redundant return await:return await in async functions outside try/catch adds stack overhead without changing behavior.

#Repository path

The generated metadata points to critiq-rules/libs/rules/catalog/rules/typescript/ts.correctness.unnecessary-return-await.rule.yaml.