no-useless-return Disallow bare returns where the function already ends A bare return on a path that already reaches the end of its function performs no additional control transfer. Instead, you SHOULD remove the redundant statement and let the function complete normally. - Category: suspicious - Level: warning - Fix: automatic - Scope: module Reported function record(value: int32): void { value; return; } Accepted function record(value: int32): void { value; } Prior art - ESLint ยท no-useless-return language/linter/src/rules/suspicious/nouselessreturn.rs:6