From fea454753efc4a673751131960c394254555d34a Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Mon, 9 Mar 2015 13:10:32 +0000 Subject: Don't use parenthesis aroudn conditions in an if. --- lib/custodian/alertfactory.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/custodian/alertfactory.rb') diff --git a/lib/custodian/alertfactory.rb b/lib/custodian/alertfactory.rb index a9b6d3d..1cb4751 100644 --- a/lib/custodian/alertfactory.rb +++ b/lib/custodian/alertfactory.rb @@ -46,8 +46,8 @@ module Custodian # def self.create( alert_type, obj ) - raise ArgumentError, "The type of notifier to create cannot be nil" if ( alert_type.nil? ) - raise ArgumentError, "The type of notifier to create must be a string" unless ( alert_type.kind_of? String ) + raise ArgumentError, "The type of notifier to create cannot be nil" if alert_type.nil? + raise ArgumentError, "The type of notifier to create must be a string" unless alert_type.kind_of? String c = @@subclasses[alert_type] if c -- cgit v1.2.1