Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Docs: add the "fixable" icon for no-useless-return (#7480)
  • Loading branch information
not-an-aardvark authored and ilyavolodin committed Oct 29, 2016
1 parent 261d728 commit 65231d8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/rules/no-useless-return.md
@@ -1,5 +1,7 @@
# Disallow redundant return statements (no-useless-return)

(fixable) The `--fix` option on the [command line](../user-guide/command-line-interface#fix) automatically fixes problems reported by this rule.

A `return;` statement with nothing after it is redundant, and has no effect on the runtime behavior of a function. This can be confusing, so it's better to disallow these redundant statements.

## Rule Details
Expand Down

0 comments on commit 65231d8

Please sign in to comment.