Reformat tools/ files
This commit is contained in:
parent
7e4533640b
commit
d4bbdc258b
@ -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 {
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user