Skip to content

Commit

Permalink
Make eslint happy.
Browse files Browse the repository at this point in the history
Signed-off-by: Iván Sánchez Ortega <[email protected]>
  • Loading branch information
IvanSanchez committed Feb 27, 2024
1 parent c4b71c7 commit aab1157
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,6 @@ module.exports = {
curly: ['error', 'all'],
'brace-style': ['error', '1tbs', { allowSingleLine: false }],
'no-else-return': 0,
'no-return-await': 0,
},
};
2 changes: 1 addition & 1 deletion src/geotiff.js
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,7 @@ export async function fromUrls(mainUrl, overviewUrls = [], options = {}, signal)
const mainSource = await makeRemoteSource(mainUrl, options);
const mainFile = await GeoTIFF.fromSource(mainSource, signal);
const overviewFiles = await Promise.all(
overviewUrls.map((url) => makeRemoteSource(url, options).then(src=>GeoTIFF.fromSource(src))
overviewUrls.map((url) => makeRemoteSource(url, options).then((src) => GeoTIFF.fromSource(src)),
),
);

Expand Down
8 changes: 7 additions & 1 deletion src/source/remote.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,13 @@ function maybeWrapInBlockedSource(source, { blockSize, cacheSize }) {
return new BlockedSource(source, { blockSize, cacheSize });
}

export async function makeFetchSource(url, { headers = {}, credentials, maxRanges = 0, allowFullFile = false, ...blockOptions } = {}) {
export async function makeFetchSource(url, {
headers = {},
credentials,
maxRanges = 0,
allowFullFile = false,
...blockOptions
} = {}) {
const { FetchClient } = await import('./client/fetch.js');
const client = new FetchClient(url, credentials);
const source = new RemoteSource(client, headers, maxRanges, allowFullFile);
Expand Down

0 comments on commit aab1157

Please sign in to comment.