rails/rails — pull request #8675 by goshakkk (2013-01-01 17:38:32+00:00)
Title: Remove unnecessary always-nil var from #compact

`unless path` already proves `path` to be nil, so why insert it into an array and then compact?

It also gotta be slightly faster, as `compact` has less items to iterate on. (Benchmark: https://gist.github.com/4428843)