Skip to content

Commit

Permalink
Fix mutable constant offense
Browse files Browse the repository at this point in the history
  • Loading branch information
tagliala committed Sep 16, 2023
1 parent ff87892 commit 525654b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 0 additions & 7 deletions .rubocop_todo.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/chrono_model/conversions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module ChronoModel
module Conversions
extend self

ISO_DATETIME = /\A(\d{4})-(\d\d)-(\d\d) (\d\d):(\d\d):(\d\d)(?:\.(\d+))?\z/
ISO_DATETIME = /\A(\d{4})-(\d\d)-(\d\d) (\d\d):(\d\d):(\d\d)(?:\.(\d+))?\z/.freeze

def string_to_utc_time(string)
return string if string.is_a?(Time)
Expand Down

0 comments on commit 525654b

Please sign in to comment.