@@ -114,8 +114,9 @@ export class CodeSnippet {
114
114
handler : Function
115
115
) : void {
116
116
// eslint-disable-next-line @typescript-eslint/ban-types -- legacy code
117
- let entry : Map < string , Function > =
118
- this . customQuestionEventHandlers . get ( questionType ) ;
117
+ let entry : Map < string , Function > = this . customQuestionEventHandlers . get (
118
+ questionType
119
+ ) ;
119
120
if ( entry === undefined ) {
120
121
this . customQuestionEventHandlers . set ( questionType , new Map ( ) ) ;
121
122
entry = this . customQuestionEventHandlers . get ( questionType ) ;
@@ -180,8 +181,10 @@ export class CodeSnippet {
180
181
relevantQuestion . guiType
181
182
) ;
182
183
// eslint-disable-next-line @typescript-eslint/ban-types -- legacy code
183
- const customQuestionEventHandler : Function =
184
- this . getCustomQuestionEventHandler ( guiType , methodName ) ;
184
+ const customQuestionEventHandler : Function = this . getCustomQuestionEventHandler (
185
+ guiType ,
186
+ methodName
187
+ ) ;
185
188
return _ . isUndefined ( customQuestionEventHandler )
186
189
? await relevantQuestion [ methodName ] . apply ( this . gen , params )
187
190
: await customQuestionEventHandler . apply ( this . gen , params ) ;
@@ -222,8 +225,9 @@ export class CodeSnippet {
222
225
questions : TerminalAdapter . Questions < any >
223
226
) : Promise < inquirer . Answers > {
224
227
this . currentQuestions = questions ;
225
- const mappedQuestions : TerminalAdapter . Questions < any > =
226
- this . normalizeFunctions ( questions ) ;
228
+ const mappedQuestions : TerminalAdapter . Questions < any > = this . normalizeFunctions (
229
+ questions
230
+ ) ;
227
231
if ( _ . isEmpty ( mappedQuestions ) ) {
228
232
return { } ;
229
233
}
@@ -238,8 +242,9 @@ export class CodeSnippet {
238
242
// eslint-disable-next-line @typescript-eslint/ban-types -- legacy code
239
243
) : Function {
240
244
// eslint-disable-next-line @typescript-eslint/ban-types -- legacy code
241
- const entry : Map < string , Function > =
242
- this . customQuestionEventHandlers . get ( questionType ) ;
245
+ const entry : Map < string , Function > = this . customQuestionEventHandlers . get (
246
+ questionType
247
+ ) ;
243
248
if ( entry !== undefined ) {
244
249
return entry . get ( methodName ) ;
245
250
}
0 commit comments