mirror of
https://github.com/teampoltergeist/poltergeist.git
synced 2022-11-09 12:05:00 -05:00
Slight refactor
This commit is contained in:
parent
16160e7a99
commit
960007a166
1 changed files with 1 additions and 2 deletions
|
@ -29,8 +29,7 @@ module Capybara::Poltergeist
|
|||
end
|
||||
|
||||
def expires
|
||||
return nil unless @attributes['expires']
|
||||
Time.parse @attributes['expires']
|
||||
Time.parse @attributes['expires'] if @attributes['expires']
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue