Skip to content

Commit

Permalink
refactor: cleanup lint
Browse files Browse the repository at this point in the history
  • Loading branch information
blacha committed May 11, 2022
1 parent 680e7dc commit fe6e2c0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/cli/src/cog/job.factory.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Bounds } from '@basemaps/geo';
import { fsa, isConfigS3Role, isFileConfigPath, LogConfig } from '@basemaps/shared';
import { basename } from 'path';
import * as ulid from 'ulid';
import { CogBuilder } from '../index.js';
import { ActionBatchJob } from '../cli/cogify/action.batch.js';
Expand All @@ -22,8 +21,7 @@ export const CogJobFactory = {
*/
async create(ctx: JobCreationContext): Promise<CogJob> {
const id = ctx.override?.id ?? ulid.ulid();
const imageryName = ctx.imageryName; // batch does not allow '.' in names
const logger = LogConfig.get().child({ id, imageryName });
const logger = LogConfig.get().child({ id, imageryName: ctx.imageryName });

const gdalVersion = await Gdal.version(logger);
logger.info({ version: gdalVersion }, 'GdalVersion');
Expand Down Expand Up @@ -101,7 +99,7 @@ export const CogJobFactory = {

const job = await CogStacJob.create({
id,
imageryName,
imageryName: ctx.imageryName,
metadata,
ctx,
addAlpha,
Expand Down

0 comments on commit fe6e2c0

Please sign in to comment.