Skip to content

Commit

Permalink
Removed rubocop error
Browse files Browse the repository at this point in the history
  • Loading branch information
sudeeptarlekar committed Jul 30, 2020
1 parent 921517a commit ee2dc2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/faker/default/driving_licence.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def uk_driving_licence(*args)

def usa_driving_licence(state = 'CA')
bothify(fetch("driving_licence.usa_state_formats.#{state.upcase}"))
rescue I18n::MissingTranslationData => e
rescue I18n::MissingTranslationData => _e
raise InvalidStatePassed, "Invalid state code passed for USA, '#{state}'"
end

Expand Down Expand Up @@ -112,7 +112,7 @@ def gb_licence_checksum
end

class InvalidStatePassed < StandardError
def initialize(msg='Invalid state code passed')
def initialize(msg = 'Invalid state code passed')
super
end
end
Expand Down

0 comments on commit ee2dc2d

Please sign in to comment.