diff --git a/tools/generate.go b/tools/generate.go index fdbe7a0..58d10c4 100644 --- a/tools/generate.go +++ b/tools/generate.go @@ -37,8 +37,8 @@ func check(err error) { } func isDir(path string) bool { - fileStat, _ := os.Stat(path) - return fileStat.IsDir() + fileStat, _ := os.Stat(path) + return fileStat.IsDir() } func ensureDir(dir string) { @@ -280,7 +280,7 @@ func parseExamples() []*Example { example.Segs = make([][]*Seg, 0) sourcePaths := mustGlob("examples/" + exampleID + "/*") for _, sourcePath := range sourcePaths { - if ! isDir(sourcePath) { + if !isDir(sourcePath) { if strings.HasSuffix(sourcePath, ".hash") { example.GoCodeHash, example.URLHash = parseHashFile(sourcePath) } else { diff --git a/tools/measure.go b/tools/measure.go index 8be80d7..04c1a30 100644 --- a/tools/measure.go +++ b/tools/measure.go @@ -34,7 +34,7 @@ func main() { foundLongFile := false for _, sourcePath := range sourcePaths { foundLongLine := false - if ! isDir(sourcePath) { + if !isDir(sourcePath) { lines := readLines(sourcePath) for i, line := range lines { // Convert tabs to spaces before measuring, so we get an accurate measure