mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-28 17:54:16 +08:00
codstyle
This commit is contained in:
parent
ecd49cb1e7
commit
fd8462b008
2 changed files with 2 additions and 3 deletions
|
@ -28,5 +28,4 @@ class RepositoryDateTimeValue < RepositoryDateTimeValueBase
|
|||
rescue ArgumentError
|
||||
nil
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
@ -18,7 +18,7 @@ class RepositoryTimeValue < RepositoryDateTimeValueBase
|
|||
value
|
||||
end
|
||||
|
||||
def self.import_from_text(text, attributes, options = {})
|
||||
def self.import_from_text(text, attributes, _options = {})
|
||||
time_format = '%H:%M'
|
||||
new(attributes.merge(data: DateTime.strptime(text, time_format).strftime(time_format)))
|
||||
rescue ArgumentError
|
||||
|
|
Loading…
Reference in a new issue