Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
doug-newman-nasa committed Oct 9, 2024
1 parent 2005ac1 commit 78eb551
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions src/domains/collections.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,10 @@ const extractLicense = (_collection: Collection) => {
const itemCatalogUrl = (collection: Collection) => {
const { relatedUrls } = collection;

const relatedUrl = relatedUrls?.find((relatedUrl) =>
relatedUrl.type == RelatedUrlType.GET_CAPABILITIES
&& relatedUrl.subtype == RelatedUrlSubType.STAC
const relatedUrl = relatedUrls?.find(
(relatedUrl) =>
relatedUrl.type == RelatedUrlType.GET_CAPABILITIES &&
relatedUrl.subtype == RelatedUrlSubType.STAC
);
return relatedUrl?.url;
};
Expand Down
2 changes: 1 addition & 1 deletion src/routes/browse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export const collectionsHandler = async (req: Request, res: Response): Promise<v
*/
const { links } = collection;

const itemsLink = links.find((link) => link.rel === 'items');
const itemsLink = links.find((link) => link.rel === "items");

if (!itemsLink) {
collection.links.push({
Expand Down

0 comments on commit 78eb551

Please sign in to comment.