From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id BAC98138A87 for ; Sat, 21 Feb 2015 23:47:04 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 90A4BE053C; Sat, 21 Feb 2015 23:47:03 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1C56EE0384 for ; Sat, 21 Feb 2015 23:47:03 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E97D4340AEE for ; Sat, 21 Feb 2015 23:47:01 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7D1911244D for ; Sat, 21 Feb 2015 23:47:00 +0000 (UTC) From: "Robin H. Johnson" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Robin H. Johnson" Message-ID: <1424562414.6c0177d18d37a7fb5591fa74431c25255daf8d04.robbat2@gentoo> Subject: [gentoo-commits] proj/ag-web:master commit in: lib/ X-VCS-Repository: proj/ag-web X-VCS-Files: lib/helpers.rb X-VCS-Directories: lib/ X-VCS-Committer: robbat2 X-VCS-Committer-Name: Robin H. Johnson X-VCS-Revision: 6c0177d18d37a7fb5591fa74431c25255daf8d04 X-VCS-Branch: master Date: Sat, 21 Feb 2015 23:47:00 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 917d830a-112b-491b-8530-7ca79ef0093f X-Archives-Hash: 7870863c4d023779ab558a7f53e4c3a5 commit: 6c0177d18d37a7fb5591fa74431c25255daf8d04 Author: Robin H. Johnson gentoo org> AuthorDate: Sat Feb 21 23:46:54 2015 +0000 Commit: Robin H. Johnson gentoo 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 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