additional eslint rules
This commit is contained in:
parent
b890b4e53d
commit
3743c45de6
26 changed files with 1079 additions and 184 deletions
|
|
@ -3,9 +3,9 @@ import { json } from './fetch.mjs';
|
|||
const getPoint = async (lat, lon) => {
|
||||
try {
|
||||
return await json(`https://api.weather.gov/points/${lat},${lon}`);
|
||||
} catch (e) {
|
||||
} catch (error) {
|
||||
console.log(`Unable to get point ${lat}, ${lon}`);
|
||||
console.error(e);
|
||||
console.error(error);
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue