Skip to content

Commit

Permalink
Clarify a select.
Browse files Browse the repository at this point in the history
  • Loading branch information
ericsnowcurrently committed Apr 26, 2016
1 parent b049e95 commit 87f4996
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions downloader/download.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ func (dl *Download) run(req Request) {
}
select {
case dl.done <- status:
// no-op
case <-dl.tomb.Dying():
cleanTempFile(file)
}
Expand Down

0 comments on commit 87f4996

Please sign in to comment.