Skip to content

Commit

Permalink
fix: remove unnecessary await
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasLohoff committed May 6, 2024
1 parent d8b57ac commit 1afbd55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/Docs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ async function getFeatureUrl() {
import { OgcApiEndpoint } from '@camptocamp/ogc-client';

async function getFirstTenRecords() {
const endpoint = await new OgcApiEndpoint('https://my.server.org/main')
const endpoint = new OgcApiEndpoint('https://my.server.org/main');
const firstCollection = (await endpoint.recordCollections)[0];
return endpoint.getCollectionItems(firstCollection, 10, 0);
}</pre
Expand Down

0 comments on commit 1afbd55

Please sign in to comment.