run 'go fmt' (and fix 'make fmt' in Makefile)

This commit is contained in:
Sridhar Ratnakumar 2013-11-13 17:38:23 -08:00
parent ebc25f9788
commit 6ffcd854c1
4 changed files with 7 additions and 7 deletions

View File

@ -4,7 +4,7 @@ test: *.go
go test -v
fmt:
go fmt .
gofmt -w .
# Run the test in an isolated environment.
fulltest:

View File

@ -3,9 +3,9 @@
package main
import (
"flag"
"fmt"
"github.com/ActiveState/tail"
"flag"
"os"
)

View File

@ -3,11 +3,11 @@
package watch
import (
"fmt"
"github.com/ActiveState/tail/util"
"github.com/howeyc/fsnotify"
"launchpad.net/tomb"
"os"
"fmt"
"path/filepath"
)
@ -51,7 +51,7 @@ func (fw *InotifyFileWatcher) BlockUntilExists(t *tomb.Tomb) error {
case evt, ok := <-w.Event:
if !ok {
return fmt.Errorf("inotify watcher has been closed")
}else if evt.Name == fw.Filename {
} else if evt.Name == fw.Filename {
return nil
}
case <-t.Dying():