From 685d28e6e44f20c6a5b7a567a7b99dfb2ce6c289 Mon Sep 17 00:00:00 2001 From: Seth Thomas Rasmussen Date: Tue, 2 Feb 2010 16:10:53 -0500 Subject: [PATCH] no, you don't --- lib/application_checker.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/application_checker.rb b/lib/application_checker.rb index e058702..140be5b 100644 --- a/lib/application_checker.rb +++ b/lib/application_checker.rb @@ -231,9 +231,10 @@ module Rails def extract_filenames_from_grep(output) return nil if output.empty? - # I hate rescue nil as much as the next guy but I have a reason here at least... fnames = output.split("\n").map do |fn| - fn.match(/^(.+?):/)[1] rescue nil + if m = fn.match(/^(.+?):/) + m[1] + end end.compact fnames.uniq