Skip to content

Commit

Permalink
Add codecov ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Dec 19, 2023
1 parent fb8b46d commit 667b3d4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
6 changes: 6 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
coverage:
status:
patch: false
project: false
github_checks:
annotations: false
15 changes: 3 additions & 12 deletions src/tabixIndexedFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,17 +281,8 @@ export default class TabixIndexedFile {
// TODO: what if we don't have a firstDataLine, and the header
// actually takes up more than one block? this case is not covered here

let bytes = await this._readRegion(0, maxFetch, opts)
checkAbortSignal(opts.signal)
try {
bytes = await unzip(bytes)
} catch (e) {
console.error(e)
throw new Error(
//@ts-ignore
`error decompressing block ${e.code} at 0 (length ${maxFetch}) ${e}`,
)
}
const buf = await this._readRegion(0, maxFetch, opts)
const bytes = await unzip(buf)

// trim off lines after the last non-meta line
if (metaChar) {
Expand All @@ -307,7 +298,7 @@ export default class TabixIndexedFile {
lastNewline = i
}
}
bytes = bytes.slice(0, lastNewline + 1)
return bytes.slice(0, lastNewline + 1)
}
return bytes
}
Expand Down

0 comments on commit 667b3d4

Please sign in to comment.