Commit 08cc49e0 authored by Stan Hu's avatar Stan Hu

Simplify storage_shards_match conditions

parent 11898e1a
......@@ -70,7 +70,7 @@ class GeoNodeStatusEntity < Grape::Entity
end
expose :storage_shards_match?, as: :storage_shards_match, if: -> (status, options) do
Gitlab::Geo.primary? && status.storage_shards.present?
status.storage_shards_match.present?
end
private
......
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