rapid7/metasploit-framework — comment on commit e204923966ecee6efb8aaf8e79df3e81e22a4913
File: modules/post/windows/recon/winlocalprv_esc.rb line 72
By todb-r7:

Just a style thing, but all these if/elsif/elsif/elses on regexes might be better as case/when/when/else block. I don't think it makes much difference either way, though.