Commit 7a1ce56f authored by Matija Čupić's avatar Matija Čupić

Handle nil state in ListGcpProjectsWorker#read_projects

parent 444cee56
......@@ -26,7 +26,7 @@ class ListGcpProjectsWorker
def self.read_projects(token)
Gitlab::Redis::SharedState.with do |redis|
value = redis.get(redis_shared_state_key_for(token))
JSON.parse(value)
value ? JSON.parse(value) : []
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment