Skip to content

Commit b611cf6

Browse files
committed
Address rubocop failures
1 parent 3865187 commit b611cf6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/minfraud/components/report/transaction.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,16 +95,16 @@ def validate
9595
validate_uuid('minfraud_id', @minfraud_id)
9696

9797
if ip_address.nil? &&
98-
(minfraud_id.nil? || is_empty_uuid(minfraud_id)) &&
98+
(minfraud_id.nil? || empty_uuid(minfraud_id)) &&
9999
(maxmind_id.nil? || maxmind_id.empty?) &&
100100
(transaction_id.nil? || transaction_id.empty?)
101101
raise ArgumentError, 'At least one of the following is required: ip_address, minfraud_id, maxmind_id, transaction_id.'
102102
end
103103
end
104104

105-
def is_empty_uuid(value)
105+
def empty_uuid(value)
106106
stripped_value = value.to_s.gsub('-', '')
107-
return stripped_value == '0' * 32
107+
stripped_value == '0' * 32
108108
end
109109
end
110110
end

0 commit comments

Comments
 (0)