アプリケーションで Rubocop を使用していますが、これが推奨Use a guard clause instead of wrapping the code inside a conditional expression
されます。Plzはそれを書き直すためのきれいな方法を提案します。
if (geolocation_points.exists? || geolocation_boxes.exists?)
self.geolocation = true
end
アプリケーションで Rubocop を使用していますが、これが推奨Use a guard clause instead of wrapping the code inside a conditional expression
されます。Plzはそれを書き直すためのきれいな方法を提案します。
if (geolocation_points.exists? || geolocation_boxes.exists?)
self.geolocation = true
end