Skip to content

Commit

Permalink
Simplified code
Browse files Browse the repository at this point in the history
  • Loading branch information
thecsw committed Jul 15, 2019
1 parent d867c57 commit e93621c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion streaming.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func (r *Reddit) StreamNewPosts(sr string) (<-chan PostListingChild, chan bool)
if len(new) > 0 {
last = new[0].GetId()
}
for i, _ := range new {
for i := range new {
c <- new[len(new)-i-1]
}
time.Sleep(r.Stream.PostListInterval * time.Second)
Expand Down

0 comments on commit e93621c

Please sign in to comment.