DEV: Fix rubocop issues (#14715)

This commit is contained in:
Dan Ungureanu
2021-10-27 11:39:28 +03:00
committed by GitHub
parent 6aa6275f3f
commit 69f0f48dc0
27 changed files with 65 additions and 69 deletions

View File

@@ -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