Skip to content

Commit 2049fc9

Browse files
committed
weird merge artifact
1 parent cc26f48 commit 2049fc9

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

ruby/lib/plus_codes/open_location_code.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ def full?(code)
4444
# @return [Array<Integer, Integer>] with the latitude and longitude integer
4545
# values.
4646
def location_to_integers(latitude, longitude)
47-
lat_val = (latitude * PAIR_CODE_PRECISION * LAT_GRID_PRECISION).floor
4847
lat_val = (latitude * PAIR_CODE_PRECISION * LAT_GRID_PRECISION).floor
4948
lat_val += 90 * PAIR_CODE_PRECISION * LAT_GRID_PRECISION
5049
if lat_val.negative?
@@ -53,7 +52,6 @@ def location_to_integers(latitude, longitude)
5352
lat_val = 2 * 90 * PAIR_CODE_PRECISION * LAT_GRID_PRECISION - 1
5453
end
5554
lng_val = (longitude * PAIR_CODE_PRECISION * LNG_GRID_PRECISION).floor
56-
lng_val = (longitude * PAIR_CODE_PRECISION * LNG_GRID_PRECISION).floor
5755
lng_val += 180 * PAIR_CODE_PRECISION * LNG_GRID_PRECISION
5856
if lng_val.negative?
5957
# Ruby's % operator differs from other languages in that it returns

0 commit comments

Comments
 (0)