From 9a3a9ed6f40e7075b0e5774a395fe93d000e4c06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andres=20Keskk=C3=BCla?= Date: Fri, 9 Jan 2015 09:49:31 +0200 Subject: [PATCH] Cyclomatic complexity fix --- app/helpers/epp/contacts_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/helpers/epp/contacts_helper.rb b/app/helpers/epp/contacts_helper.rb index 0c5b6fcf4..3664c4aa9 100644 --- a/app/helpers/epp/contacts_helper.rb +++ b/app/helpers/epp/contacts_helper.rb @@ -37,8 +37,8 @@ module Epp::ContactsHelper end def info_contact - handle_errors(@contact) and return unless @contact - handle_errors(@contact) and return unless rights? + handle_errors(@contact) and return unless @contact && rights? + # handle_errors(@contact) and return unless rights? @disclosure = ContactDisclosure.default_values.merge(@contact.disclosure.try(:as_hash) || {}) @disclosure_policy = @contact.disclosure.try(:attributes_with_flag) @owner = owner?(false)