Skip to content

Commit a52c68f

Browse files
committed
Update sample_set.rb
1 parent 7297148 commit a52c68f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/models/sample_set.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,11 +186,11 @@ def lat_lon
186186
end
187187

188188
def lat_lon?
189-
lat_lon && lat_lon[0].present? && lat_lon[1].present?
189+
lat_lon.present? && lat_lon[0].present? && lat_lon[1].present?
190190
end
191191

192192
def lon_lat
193-
lat_lon? ? nil : [lat_lon[1], lat_lon[0]]
193+
lat_lon? ? [lat_lon[1], lat_lon[0]] : nil
194194
end
195195
end
196196

0 commit comments

Comments
 (0)