Fix some codeclimate issues

This commit is contained in:
Maciej Szlosarczyk 2018-04-23 11:13:42 +03:00
parent b578cdcfa8
commit 33a6971c37
No known key found for this signature in database
GPG key ID: 41D62D42D3B0D765
4 changed files with 17 additions and 19 deletions

View file

@ -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)