Fix syntax error in initializers/fill_shards

This commit is contained in:
Dmitriy Zaporozhets 2018-11-07 17:25:29 +00:00
parent 89f1e4b63c
commit d1a5746e1e

View file

@ -1,4 +1,3 @@
return unless Shard.connected?
return if Gitlab::Database.read_only?
Shard.populate!
if Shard.connected? && !Gitlab::Database.read_only?
Shard.populate!
end