Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto fix lint issues #120

Merged
merged 1 commit into from
Oct 26, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/atmosphere.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ function a(i: number): number {
1.7,
1.1,
0
].map(function(a) {return a === 0 ? a : (a / 1000);});/* eslint-enable no-magic-numbers */
].map(a => a === 0 ? a : (a / 1000));/* eslint-enable no-magic-numbers */
return lapseRates[i];
}
/**
Expand Down
2 changes: 1 addition & 1 deletion lib/geodetic.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ function toDegreesMinutesSeconds(value: point3): ?number[] {
return null;
}
const data = value;
const dimension = data.length - data.slice(0).reverse().findIndex(function(val) {return abs(val) > 0;});
const dimension = data.length - data.slice(0).reverse().findIndex(val => abs(val) > 0);
const degrees = trunc(value[0]);
let minutes = 0;
let seconds = 0;
Expand Down