2444: Fix no-else-return lint
This commit is contained in:
@@ -255,13 +255,12 @@ export class SearchAddon implements ITerminalAddon {
|
|||||||
searchPosition.startCol += terminal.cols;
|
searchPosition.startCol += terminal.cols;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
// This will iterate until we find the line start.
|
// This will iterate until we find the line start.
|
||||||
// When we find it, we will search using the calculated start column.
|
// When we find it, we will search using the calculated start column.
|
||||||
searchPosition.startRow--;
|
searchPosition.startRow--;
|
||||||
searchPosition.startCol += terminal.cols;
|
searchPosition.startCol += terminal.cols;
|
||||||
return this._findInLine(term, searchPosition, searchOptions);
|
return this._findInLine(term, searchPosition, searchOptions);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
let stringLine = this._linesCache ? this._linesCache[row] : void 0;
|
let stringLine = this._linesCache ? this._linesCache[row] : void 0;
|
||||||
if (stringLine === void 0) {
|
if (stringLine === void 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user