Skip to content
Commit 57ea41e6 authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Improve @chainable detection from function body.

Ignore statements that don't contain a `return` statement.

This means that now a function that contains just one `return this;` at
the end of itself will be detected as chainable; given there's no other
return statements anywhere in the function body.
parent 6f9ae2c8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment