Skip to content

Commit a292178

Browse files
committed
fix: lint errors
1 parent 6c72bd0 commit a292178

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/getDistance.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,12 @@ import { earthRadius } from './constants';
55
import { GeolibInputCoordinates } from './types';
66

77
const normalizeACosArg = (val: number): number => {
8-
if (val > 1) return 1;
9-
if (val < -1) return -1;
8+
if (val > 1) {
9+
return 1;
10+
}
11+
if (val < -1) {
12+
return -1;
13+
}
1014
return val;
1115
};
1216

0 commit comments

Comments
 (0)