mpage/nalloc — comment on commit c1280e1621084c62b60559e02f53fec9e24bbfdb
File: lib/nalloc.rb line 20
By mpage:

Why the explicit return here? In favor of consistency I'd do either:

args.empty? PATH : ::File.join(PATH, args.flatten)

or

if args.empty?
PATH
else
::File.join(PATH, args.flatten)
end

Purely stylistic, but I've started to prefer the more explicit "if-else" to the ternary-if expression. It's not much longer and I find it easier to read