resyntax icon indicating copy to clipboard operation
resyntax copied to clipboard

Suggest inlining immediately-returned variables

Open jackfirth opened this issue 2 years ago • 0 comments

Saw this code today:

 (λ ()
   (define t (get-token-grammar i))
   t)

The t variable is immediately returned and therefore useless. This can be refactored to just: (λ () (get-token-grammar i)).

jackfirth avatar Mar 31 '22 21:03 jackfirth