Skip to content

Commit

Permalink
Rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
otavioschwanck committed Mar 7, 2019
1 parent e7635e9 commit 7dd37c9
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions lib/br_invoices_pdf/nfce/parser/emission_details.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,9 @@ def check_url(xml)
private_class_method :check_url

def locate_element_to_date(xml, path)
begin
Time.parse(locate_element(xml, path)).utc
rescue StandardError => e
Time.parse("#{locate_element(xml, path)[0..18]}-03:00").utc
end
Time.parse(locate_element(xml, path)).utc
rescue StandardError => _e
Time.parse("#{locate_element(xml, path)[0..18]}-03:00").utc
end
private_class_method :locate_element_to_date
end
Expand Down

0 comments on commit 7dd37c9

Please sign in to comment.