Skip to content

Commit

Permalink
eslinting
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeled committed Dec 14, 2020
1 parent 0dbc016 commit ca628e9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions src/commands/content-type/compare-remote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,16 @@ export default class CompareRemoteCommand extends Command {
char: 'c',
description: 'Content Type UID',
required: true,
})
}),
}

async run() {
try {
const {flags} = this.parse(CompareRemoteCommand)
this.setup({ 'token-alias': undefined, 'stack': flags['origin-stack'] })
this.setup({'token-alias': undefined, stack: flags['origin-stack']})

cli.action.start(Command.RequestDataMessage)

const originStackApi = flags['origin-stack'] as string
const remoteStackApi = flags['remote-stack'] as string

Expand Down
14 changes: 7 additions & 7 deletions src/commands/content-type/compare.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ export default class CompareCommand extends Command {
char: 'l',
description: 'Content Type version, i.e. prev version',
required: false,
dependsOn: ['right']
dependsOn: ['right'],
}),

right: flags.integer({
char: 'r',
description: 'Content Type version, i.e. later version',
required: false,
dependsOn: ['left']
dependsOn: ['left'],
}),
}

Expand All @@ -55,13 +55,13 @@ export default class CompareCommand extends Command {
this.setup(flags)

cli.action.start(Command.RequestDataMessage)

if (!flags.left) {
const discovery = await this.client.getContentType(this.apiKey, flags['content-type'], false);
const version = discovery.content_type._version;
const discovery = await this.client.getContentType(this.apiKey, flags['content-type'], false)
const version = discovery.content_type._version

flags.left = version;
flags.right = version > 1 ? version - 1 : version;
flags.left = version
flags.right = version > 1 ? version - 1 : version

this.log(`Comparing versions: ${flags.left} <-> ${flags.right}.`)
}
Expand Down
2 changes: 1 addition & 1 deletion tests/audit.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ describe('audit command', () => {
test('result', () => {
expect(true).toBe(true)
})
})
})

0 comments on commit ca628e9

Please sign in to comment.