Skip to content

Commit 832ed6b

Browse files
committed
InputBox cannot be null
1 parent 7ef7d91 commit 832ed6b

1 file changed

Lines changed: 4 additions & 12 deletions

File tree

src/vs/base/browser/ui/findinput/findInput.ts

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -396,27 +396,19 @@ export class FindInput extends Widget {
396396
}
397397

398398
public validate(): void {
399-
if (this.inputBox) {
400-
this.inputBox.validate();
401-
}
399+
this.inputBox.validate();
402400
}
403401

404402
public showMessage(message: InputBoxMessage): void {
405-
if (this.inputBox) {
406-
this.inputBox.showMessage(message);
407-
}
403+
this.inputBox.showMessage(message);
408404
}
409405

410406
public clearMessage(): void {
411-
if (this.inputBox) {
412-
this.inputBox.hideMessage();
413-
}
407+
this.inputBox.hideMessage();
414408
}
415409

416410
private clearValidation(): void {
417-
if (this.inputBox) {
418-
this.inputBox.hideMessage();
419-
}
411+
this.inputBox.hideMessage();
420412
}
421413

422414
public dispose(): void {

0 commit comments

Comments
 (0)