Skip to content

Commit

Permalink
Merge 25002b5 into cc7e447
Browse files Browse the repository at this point in the history
  • Loading branch information
fnothaft committed Feb 3, 2018
2 parents cc7e447 + 25002b5 commit 6bd0dc9
Showing 1 changed file with 5 additions and 2 deletions.
Expand Up @@ -1150,8 +1150,11 @@ class ADAMContext(@transient val sc: SparkContext) extends Serializable with Log
}

private def readVcfHeader(pathName: String): VCFHeader = {
VCFHeaderReader.readHeaderFrom(WrapSeekable.openPath(sc.hadoopConfiguration,
new Path(pathName)))
val is = WrapSeekable.openPath(sc.hadoopConfiguration,
new Path(pathName))
val header = VCFHeaderReader.readHeaderFrom(is)
is.close()
header
}

private def loadHeaderLines(pathName: String): Seq[VCFHeaderLine] = {
Expand Down

0 comments on commit 6bd0dc9

Please sign in to comment.