commit:     6c0177d18d37a7fb5591fa74431c25255daf8d04
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 21 23:46:54 2015 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Sat Feb 21 23:46:54 2015 +0000
URL:        
http://sources.gentoo.org/gitweb/?p=proj/ag-web.git;a=commit;h=6c0177d1

Optimize.

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

---
 lib/helpers.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/helpers.rb b/lib/helpers.rb
index e7050d1..5c3422e 100644
--- a/lib/helpers.rb
+++ b/lib/helpers.rb
@@ -4,7 +4,7 @@ require 'erb'
 
 helpers do
   def list_check
-    unless $config['active_lists'].include?(params[:list]) or 
$config['frozen_lists'].include?(params[:list])
+    unless [$config['active_lists'], 
$config['frozen_lists']].flatten.include?(params[:list])
       status 404
       body "List not found"
       return false

Reply via email to