Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Nov 1, 2021
1 parent 8e63d49 commit c02712e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions products/jbrowse-desktop/public/generateFastaIndex.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import fs from 'fs'
import split2 from 'split2'
import { promisify } from 'util'
import { finished, Readable, Transform } from 'stream'
import { Readable, Transform } from 'stream'
import { IncomingMessage } from 'http'
import { http, https, FollowResponse } from 'follow-redirects'

const streamFinished = promisify(finished)

export async function createRemoteStream(urlIn: string) {
const newUrl = new URL(urlIn)
const fetcher = newUrl.protocol === 'https:' ? https : http
Expand Down Expand Up @@ -57,7 +54,7 @@ class FastaIndexTransform extends Transform {
refOffset = 0
lineNum = 0

_transform(chunk: Buffer, encoding: any, done: () => void) {
_transform(chunk: Buffer, encoding: unknown, done: () => void) {
const line = chunk.toString()
// line length in bytes including the \n that we split on
const currentLineBytes = chunk.length + 1
Expand Down

0 comments on commit c02712e

Please sign in to comment.