Skip to content

Commit

Permalink
fix: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
vaultec81 committed Apr 8, 2021
1 parent 905ea78 commit 45d5ed4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/commands/workflows/active.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ export default class WorkflowsActive extends Command {
}
default: {
this.log(`Invalid input ${args.value}`)
return
}
}
const pairs: api.KeyValuePair = {
Expand All @@ -93,8 +94,8 @@ export default class WorkflowsActive extends Command {
client.setWorkflow(payload),
withStandardErrors(
{
'201': () => {
this.log(`Workflow property has been set to ${args.value}`)
'204': () => {
this.log(`Workflow has been set to ${args.value}`)
},
'403': ({ error }: api.ErrorResponse) => {
this.log(chalk.red(`${chalk.bold('Error')}: ${error}`))
Expand Down
2 changes: 1 addition & 1 deletion src/commands/workflows/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default class Workflows extends Command {
},
active: {
header: 'Active',
get: (row) => row.active === undefined ? true : row.active,
get: (row) => (row.active === undefined ? true : row.active),
},
},
{ printLine: this.log },
Expand Down

0 comments on commit 45d5ed4

Please sign in to comment.