Skip to content

Commit b18b2ab

Browse files
authored
Comment maintenance
Missing ")" and removing misleading comment.
1 parent 55653d8 commit b18b2ab

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

js/closure/openlocationcode.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
2727
Codes represent rectangular areas rather than points, and the longer the
2828
code, the smaller the area. A 10 character code represents a 13.5x13.5
29-
meter area (at the equator. An 11 character code represents approximately
29+
meter area (at the equator). An 11 character code represents approximately
3030
a 2.8x3.5 meter area.
3131
3232
Two encoding algorithms are used. The first 10 characters are pairs of
@@ -351,9 +351,6 @@ function decode(code) {
351351
// Row and column numbers must be integers.
352352
var row = Math.floor(value / GRID_COLUMNS);
353353
var col = Math.floor(value % GRID_COLUMNS);
354-
// Lat and lng grid sizes shouldn't underflow due to maximum code length
355-
// enforcement, but a hypothetical underflow won't cause fatal errors
356-
// here.
357354
latitude_resolution /= GRID_ROWS;
358355
longitude_resolution /= GRID_COLUMNS;
359356
latitude += row * latitude_resolution;

0 commit comments

Comments
 (0)