diff options
Diffstat (limited to 'lib/cgi/session')
-rw-r--r-- | lib/cgi/session/pstore.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/cgi/session/pstore.rb b/lib/cgi/session/pstore.rb index 033acc3249..10f3e8f75f 100644 --- a/lib/cgi/session/pstore.rb +++ b/lib/cgi/session/pstore.rb @@ -76,11 +76,7 @@ class CGI def restore unless @hash @p.transaction do - begin - @hash = @p['hash'] - rescue - @hash = {} - end + @hash = @p['hash'] || {} end end @hash |