mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-05-18 13:38:24 -04:00
rubocop style fix
This commit is contained in:
@@ -67,8 +67,11 @@ module PredictHarvest
|
||||
return harvests if harvests.size.positive?
|
||||
|
||||
# otherwise use nearby plantings
|
||||
return Harvest.where(planting: nearby_same_crop.has_harvests)
|
||||
.where.not(planting_id: nil) if location
|
||||
if location
|
||||
return Harvest.where(planting: nearby_same_crop.has_harvests)
|
||||
.where.not(planting_id: nil)
|
||||
end
|
||||
|
||||
[]
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user