diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2019-06-26 01:26:29 +0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2019-06-26 01:30:05 +0300 |
commit | cad8bb187deabcb4fc8ee9b58442845658205ee5 (patch) | |
tree | 984a5bba58067d85f06746f2606de5769cd476d1 /lib/gitlab/json_cache.rb | |
parent | 87b468c254e3e1e3b6b1d86e003f1f90a39935a2 (diff) |
Parse the cached value when the it is false
Diffstat (limited to 'lib/gitlab/json_cache.rb')
-rw-r--r-- | lib/gitlab/json_cache.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/json_cache.rb b/lib/gitlab/json_cache.rb index d01183d7845..84c6817f3c7 100644 --- a/lib/gitlab/json_cache.rb +++ b/lib/gitlab/json_cache.rb @@ -34,7 +34,7 @@ module Gitlab def read(key, klass = nil) value = backend.read(cache_key(key)) - value = parse_value(value, klass) if value + value = parse_value(value, klass) unless value.nil? value end |