Skip to content

Commit

Permalink
Update packages/cogify/src/cogify/cli/cli.cover.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Blayne Chard <[email protected]>
  • Loading branch information
Wentao-Kuang and blacha authored Jan 12, 2025
1 parent e7edc8e commit ea22f8c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/cogify/src/cogify/cli/cli.cover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,8 @@ export const BasemapsCogifyCoverCommand = command({
throw new Error(`No collection.json found with imagery: ${im.url.href}`);
}

if (im.collection && im.collection['linz:slug']) {
im.name = im.collection['linz:slug'] as string;
}
const slug = im.collection?.['linz:slug']
if (slug != null) im.name = slug

Check failure on line 88 in packages/cogify/src/cogify/cli/cli.cover.ts

View workflow job for this annotation

GitHub Actions / build-containers

Type '{}' is not assignable to type 'string'.

Check failure on line 88 in packages/cogify/src/cogify/cli/cli.cover.ts

View workflow job for this annotation

GitHub Actions / build (macos-latest)

Type '{}' is not assignable to type 'string'.

Check failure on line 88 in packages/cogify/src/cogify/cli/cli.cover.ts

View workflow job for this annotation

GitHub Actions / screenshot

Type '{}' is not assignable to type 'string'.

Check failure on line 88 in packages/cogify/src/cogify/cli/cli.cover.ts

View workflow job for this annotation

GitHub Actions / smoke

Type '{}' is not assignable to type 'string'.

Check failure on line 88 in packages/cogify/src/cogify/cli/cli.cover.ts

View workflow job for this annotation

GitHub Actions / Create containers

Type '{}' is not assignable to type 'string'.

Check failure on line 88 in packages/cogify/src/cogify/cli/cli.cover.ts

View workflow job for this annotation

GitHub Actions / build-deploy

Type '{}' is not assignable to type 'string'.

const tms = SupportedTileMatrix.find((f) => f.identifier.toLowerCase() === args.tileMatrix.toLowerCase());
if (tms == null) throw new Error('--tile-matrix: ' + args.tileMatrix + ' not found');
Expand Down

0 comments on commit ea22f8c

Please sign in to comment.