Reformat tools/ files
This commit is contained in:
parent
7e4533640b
commit
d4bbdc258b
@ -280,7 +280,7 @@ func parseExamples() []*Example {
|
|||||||
example.Segs = make([][]*Seg, 0)
|
example.Segs = make([][]*Seg, 0)
|
||||||
sourcePaths := mustGlob("examples/" + exampleID + "/*")
|
sourcePaths := mustGlob("examples/" + exampleID + "/*")
|
||||||
for _, sourcePath := range sourcePaths {
|
for _, sourcePath := range sourcePaths {
|
||||||
if ! isDir(sourcePath) {
|
if !isDir(sourcePath) {
|
||||||
if strings.HasSuffix(sourcePath, ".hash") {
|
if strings.HasSuffix(sourcePath, ".hash") {
|
||||||
example.GoCodeHash, example.URLHash = parseHashFile(sourcePath)
|
example.GoCodeHash, example.URLHash = parseHashFile(sourcePath)
|
||||||
} else {
|
} else {
|
||||||
|
@ -34,7 +34,7 @@ func main() {
|
|||||||
foundLongFile := false
|
foundLongFile := false
|
||||||
for _, sourcePath := range sourcePaths {
|
for _, sourcePath := range sourcePaths {
|
||||||
foundLongLine := false
|
foundLongLine := false
|
||||||
if ! isDir(sourcePath) {
|
if !isDir(sourcePath) {
|
||||||
lines := readLines(sourcePath)
|
lines := readLines(sourcePath)
|
||||||
for i, line := range lines {
|
for i, line := range lines {
|
||||||
// Convert tabs to spaces before measuring, so we get an accurate measure
|
// Convert tabs to spaces before measuring, so we get an accurate measure
|
||||||
|
Loading…
x
Reference in New Issue
Block a user