1
0
mirror of https://github.com/element-hq/element-web.git synced 2025-11-29 21:23:11 +03:00

Add lint for unused locals (#8007)

This commit is contained in:
J. Ryan Stinnett
2022-03-09 12:05:16 +00:00
committed by GitHub
parent c7dfaa8f64
commit 65691202f7
25 changed files with 46 additions and 115 deletions

View File

@@ -1681,8 +1681,8 @@ export class RoomView extends React.Component<IRoomProps, IRoomState> {
*
* We pass it down to the scroll panel.
*/
private handleScrollKey = ev => {
let panel;
public handleScrollKey = ev => {
let panel: ScrollPanel | TimelinePanel;
if (this.searchResultsPanel.current) {
panel = this.searchResultsPanel.current;
} else if (this.messagePanel) {