Skip to content

Commit

Permalink
fix: lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelbieh committed Jun 23, 2019
1 parent 6c72bd0 commit a292178
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/getDistance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,12 @@ import { earthRadius } from './constants';
import { GeolibInputCoordinates } from './types';

const normalizeACosArg = (val: number): number => {
if (val > 1) return 1;
if (val < -1) return -1;
if (val > 1) {
return 1;
}
if (val < -1) {
return -1;
}
return val;
};

Expand Down

0 comments on commit a292178

Please sign in to comment.