File tree Expand file tree Collapse file tree 1 file changed +22
-22
lines changed Expand file tree Collapse file tree 1 file changed +22
-22
lines changed Original file line number Diff line number Diff line change @@ -75,29 +75,29 @@ export async function getConfigFromWizard({
75
75
76
76
if ( cdkAnswers . context && cdkAnswers . context . trim ( ) !== '' ) {
77
77
answers . context = [ cdkAnswers . context . trim ( ) ] ;
78
- }
79
-
80
- // more context
81
- while ( true ) {
82
- const moreContextAnswers = await inquirer . prompt ( [
83
- {
84
- type : 'input' ,
85
- name : 'context' ,
86
- message : 'Would you like to enter more CDK context?' ,
87
- default : oldContext . length > 0 ? oldContext . shift ( ) : undefined ,
88
- } ,
89
- ] ) ;
90
78
91
- if (
92
- moreContextAnswers . context &&
93
- moreContextAnswers . context . trim ( ) !== ''
94
- ) {
95
- answers . context = [
96
- ...( answers . context ?? [ ] ) ,
97
- moreContextAnswers . context . trim ( ) ,
98
- ] ;
99
- } else {
100
- break ;
79
+ // more context
80
+ while ( true ) {
81
+ const moreContextAnswers = await inquirer . prompt ( [
82
+ {
83
+ type : 'input' ,
84
+ name : 'context' ,
85
+ message : 'Would you like to enter more CDK context?' ,
86
+ default : oldContext . length > 0 ? oldContext . shift ( ) : undefined ,
87
+ } ,
88
+ ] ) ;
89
+
90
+ if (
91
+ moreContextAnswers . context &&
92
+ moreContextAnswers . context . trim ( ) !== ''
93
+ ) {
94
+ answers . context = [
95
+ ...( answers . context ?? [ ] ) ,
96
+ moreContextAnswers . context . trim ( ) ,
97
+ ] ;
98
+ } else {
99
+ break ;
100
+ }
101
101
}
102
102
}
103
103
}
You can’t perform that action at this time.
0 commit comments