From 89d05ef0b6edc5d1958aab036def9e528c070080 Mon Sep 17 00:00:00 2001 From: erik Date: Sun, 23 Aug 2020 10:47:20 +0200 Subject: [PATCH] make tslint happy --- src/WebConnection.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/WebConnection.ts b/src/WebConnection.ts index cbaf7b4..db7a80b 100644 --- a/src/WebConnection.ts +++ b/src/WebConnection.ts @@ -9,10 +9,10 @@ import { Setup } from './xproto' function isSetup(setup: any): setup is Setup { // TODO we could check all Setup attributes but it would be a long list... - return (setup as Setup).rootsLen !== undefined - && (setup as Setup).protocolMinorVersion !== undefined - && (setup as Setup).protocolMajorVersion !== undefined - && (setup as Setup).length !== undefined + return setup.rootsLen !== undefined + && setup.protocolMinorVersion !== undefined + && setup.protocolMajorVersion !== undefined + && setup.length !== undefined } function createXConnectionSocket(webSocket: WebSocket): XConnectionSocket {