Skip to content

Commit 4daa3f9

Browse files
committed
Fix lint
1 parent 3b90a6c commit 4daa3f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/minfraud/components/report/transaction.rb

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

9797
if ip_address.nil? &&
98-
(minfraud_id.nil? || 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 empty_uuid(value)
105+
def empty_uuid?(value)
106106
stripped_value = value.to_s.gsub('-', '')
107107
stripped_value == '0' * 32
108108
end

0 commit comments

Comments
 (0)