Skip to content

Commit c638883

Browse files
committed
refactor: address more feedback
1 parent 071ac27 commit c638883

4 files changed

Lines changed: 2 additions & 8 deletions

File tree

src/commands/content-item/move.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ export const handler = async (argv: Arguments<CopyItemBuilderOptions & Configura
203203

204204
dir: '', // unused
205205

206-
logFile: revertLog,
206+
logFile: argv.logFile,
207207
revertLog: argv.revertLog
208208
});
209209
} else {

src/commands/event/archive.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ export const handler = async (argv: Arguments<ArchiveOptions & ConfigurationPara
275275
}
276276

277277
const events = await getEvents({
278-
id: id as string,
278+
id,
279279
client,
280280
hubId,
281281
name

src/commands/hub/clone.spec.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ import { createLog, getDefaultLogPath, openRevertLog } from '../../common/log-he
33
import { ensureDirectoryExists } from '../../common/import/directory-utils';
44
import Yargs from 'yargs/yargs';
55

6-
import * as copier from '../content-item/copy';
7-
86
import * as content from './steps/content-clone-step';
97
import * as settings from './steps/settings-clone-step';
108
import * as schema from './steps/schema-clone-step';
@@ -45,9 +43,6 @@ jest.mock('./steps/schema-clone-step', () => ({
4543
jest.mock('./steps/type-clone-step', () => ({ TypeCloneStep: mockStep('Clone Content Types', () => success[2]) }));
4644
jest.mock('./steps/content-clone-step', () => ({ ContentCloneStep: mockStep('Clone Content', () => success[3]) }));
4745

48-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
49-
const copierAny = copier as any;
50-
5146
jest.mock('../../common/log-helpers', () => ({
5247
...jest.requireActual('../../common/log-helpers'),
5348
getDefaultLogPath: jest.fn()

src/commands/hub/clone.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { join } from 'path';
44
import { ConfigurationParameters } from '../configure';
55

66
import { ensureDirectoryExists } from '../../common/import/directory-utils';
7-
import { FileLog } from '../../common/file-log';
87
import { loadCopyConfig } from '../../common/content-item/copy-config';
98
import { CloneHubBuilderOptions } from '../../interfaces/clone-hub-builder-options';
109

0 commit comments

Comments
 (0)