Skip to content

Commit

Permalink
Remove unnecessary closure
Browse files Browse the repository at this point in the history
  • Loading branch information
josharian committed Apr 15, 2015
1 parent d3c36af commit 07555c5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions logspout.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,7 @@ func main() {

for _, job := range router.Jobs.All() {
job := job
go func() {
log.Fatalf("%s ended: %s", job.Name(), job.Run())
}()
go log.Fatalf("%s ended: %s", job.Name(), job.Run())
}

select {}
Expand Down

0 comments on commit 07555c5

Please sign in to comment.