Merge branch 'typo-fix' of https://github.com/tcheneau/tail into tcheneau-typo-fix

This commit is contained in:
Nino Khodabandeh 2016-04-06 16:23:43 -07:00
commit d777a48bf8
1 changed files with 3 additions and 3 deletions

View File

@ -167,10 +167,10 @@ var errStopAtEOF = errors.New("tail: stop at eof")
func (tail *Tail) close() {
close(tail.Lines)
tail.colseFile()
tail.closeFile()
}
func (tail *Tail) colseFile() {
func (tail *Tail) closeFile() {
if tail.file != nil {
tail.file.Close()
tail.file = nil
@ -178,7 +178,7 @@ func (tail *Tail) colseFile() {
}
func (tail *Tail) reopen() error {
tail.colseFile()
tail.closeFile()
for {
var err error
tail.file, err = OpenFile(tail.Filename)