Skip to content
This repository has been archived by the owner on Nov 23, 2023. It is now read-only.

Commit

Permalink
make tslint happy
Browse files Browse the repository at this point in the history
  • Loading branch information
erik committed Aug 23, 2020
1 parent 212d78b commit 89d05ef
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/WebConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 89d05ef

Please sign in to comment.