mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Fix rubocop issues (#14715)
This commit is contained in:
@@ -86,7 +86,7 @@ class Cache
|
||||
|
||||
if raw
|
||||
begin
|
||||
Marshal.load(raw)
|
||||
Marshal.load(raw) # rubocop:disable Security/MarshalLoad
|
||||
rescue => e
|
||||
log_first_exception(e)
|
||||
end
|
||||
@@ -113,7 +113,7 @@ class Cache
|
||||
|
||||
def read_entry(key)
|
||||
if data = redis.get(key)
|
||||
Marshal.load(data)
|
||||
Marshal.load(data) # rubocop:disable Security/MarshalLoad
|
||||
end
|
||||
rescue => e
|
||||
# corrupt cache, this can happen if Marshal version
|
||||
|
||||
Reference in New Issue
Block a user