0

アプリケーションで 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
4

1 に答える 1