Skip to content

Commit d5eac5e

Browse files
authored
glog: simplify range loop (#37)
Just a tiny bit nicer to read.
1 parent 424d233 commit d5eac5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

glog.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -879,7 +879,7 @@ const flushInterval = 30 * time.Second
879879

880880
// flushDaemon periodically flushes the log file buffers.
881881
func (l *loggingT) flushDaemon() {
882-
for _ = range time.NewTicker(flushInterval).C {
882+
for range time.NewTicker(flushInterval).C {
883883
l.lockAndFlushAll()
884884
}
885885
}

0 commit comments

Comments
 (0)