[Dev] Fix eslint errors (#3709)

This commit is contained in:
Alexander Zinchuk 2023-08-14 11:17:33 +02:00
parent 021f46acd6
commit 65c0ef329a
4 changed files with 3 additions and 5 deletions

View File

@ -3,7 +3,6 @@ import {
} from '../../index'; } from '../../index';
import type { ApiChat } from '../../../api/types'; import type { ApiChat } from '../../../api/types';
import { MAIN_THREAD_ID } from '../../../api/types';
import { MESSAGE_SEARCH_SLICE, SHARED_MEDIA_SLICE } from '../../../config'; import { MESSAGE_SEARCH_SLICE, SHARED_MEDIA_SLICE } from '../../../config';
import { callApi } from '../../../api/gramjs'; import { callApi } from '../../../api/gramjs';
@ -12,7 +11,6 @@ import {
selectCurrentMediaSearch, selectCurrentMediaSearch,
selectCurrentMessageList, selectCurrentMessageList,
selectChat, selectChat,
selectThreadInfo,
} from '../../selectors'; } from '../../selectors';
import { buildCollectionByKey } from '../../../util/iteratees'; import { buildCollectionByKey } from '../../../util/iteratees';
import { import {

View File

@ -49,7 +49,7 @@ export async function authFlow(
client._log.info('Signed in successfully as', utils.getDisplayName(me)); client._log.info('Signed in successfully as', utils.getDisplayName(me));
} }
export async function signInUserWithPreferredMethod( export function signInUserWithPreferredMethod(
client: TelegramClient, apiCredentials: ApiCredentials, authParams: UserAuthParams, client: TelegramClient, apiCredentials: ApiCredentials, authParams: UserAuthParams,
): Promise<Api.TypeUser> { ): Promise<Api.TypeUser> {
const { initialMethod = DEFAULT_INITIAL_METHOD } = authParams; const { initialMethod = DEFAULT_INITIAL_METHOD } = authParams;

View File

@ -67,7 +67,7 @@ class HttpStream {
this.isClosed = false; this.isClosed = false;
} }
async write(data: Buffer) { write(data: Buffer) {
if (this.isClosed || !this.url) { if (this.isClosed || !this.url) {
this.handleDisconnect(); this.handleDisconnect();
throw closeError; throw closeError;

View File

@ -6,7 +6,7 @@ let decoder: any;
let demuxer: any; let demuxer: any;
let onDestroy: VoidFunction | undefined; let onDestroy: VoidFunction | undefined;
async function init( function init(
url: string, url: string,
maxFrames: number, maxFrames: number,
workerIndex: number, workerIndex: number,