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