mirror of
https://github.com/internetee/registry.git
synced 2025-07-24 11:38:30 +02:00
Fix some codeclimate issues
This commit is contained in:
parent
b578cdcfa8
commit
33a6971c37
4 changed files with 17 additions and 19 deletions
|
@ -4,7 +4,7 @@ module Payments
|
|||
PAYMENT_METHODS = [PAYMENT_INTERMEDIARIES, PAYMENT_BANKLINK_BANKS].flatten.freeze
|
||||
|
||||
def self.create_with_type(type, invoice, opts = {})
|
||||
fail ArgumentError unless PAYMENT_METHODS.include?(type)
|
||||
raise ArgumentError unless PAYMENT_METHODS.include?(type)
|
||||
|
||||
if PAYMENT_BANKLINK_BANKS.include?(type)
|
||||
BankLink.new(type, invoice, opts)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue