File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,7 @@ export default class WorkflowsActive extends Command {
78
78
}
79
79
default : {
80
80
this . log ( `Invalid input ${ args . value } ` )
81
+ return ;
81
82
}
82
83
}
83
84
const pairs : api . KeyValuePair = {
@@ -93,8 +94,8 @@ export default class WorkflowsActive extends Command {
93
94
client . setWorkflow ( payload ) ,
94
95
withStandardErrors (
95
96
{
96
- '201 ' : ( ) => {
97
- this . log ( `Workflow property has been set to ${ args . value } ` )
97
+ '204 ' : ( ) => {
98
+ this . log ( `Workflow has been set to ${ args . value } ` )
98
99
} ,
99
100
'403' : ( { error } : api . ErrorResponse ) => {
100
101
this . log ( chalk . red ( `${ chalk . bold ( 'Error' ) } : ${ error } ` ) )
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ export default class Workflows extends Command {
55
55
} ,
56
56
active : {
57
57
header : 'Active' ,
58
- get : ( row ) => row . active === undefined ? true : row . active ,
58
+ get : ( row ) => ( row . active === undefined ? true : row . active ) ,
59
59
} ,
60
60
} ,
61
61
{ printLine : this . log } ,
You can’t perform that action at this time.
0 commit comments