Skip to content

Commit

Permalink
Remove impossible null check
Browse files Browse the repository at this point in the history
  • Loading branch information
HyukjinKwon committed Dec 2, 2016
1 parent 66ff918 commit 9654fab
Showing 1 changed file with 1 addition and 4 deletions.
Expand Up @@ -164,10 +164,7 @@ object SparkHadoopMapReduceWriter extends Logging {
outputMetricsAndBytesWrittenCallback, recordsWritten)
recordsWritten += 1
}
if (writer != null) {
writer.close(taskContext)
writer = null
}
writer.close(taskContext)
committer.commitTask(taskContext)
}(catchBlock = {
// If there is an error, release resource and then abort the task.
Expand Down

0 comments on commit 9654fab

Please sign in to comment.