simplify parseHashFile

This commit is contained in:
Mark McGranaghan 2013-10-06 08:45:36 -07:00
parent d61579313a
commit 37028a7f0f

View File

@ -131,17 +131,8 @@ type Example struct {
}
func parseHashFile(sourcePath string) (string, string) {
var codehash, urlkey string
lines := readLines(sourcePath)
for idx, line := range lines {
switch idx {
case 0:
codehash = line
case 1:
urlkey = line
}
}
return codehash, urlkey
return lines[0], lines[1]
}
func resetUrlHashFile(codehash, code, sourcePath string) string {