spare some syscalls

This commit is contained in:
Mark McGranaghan 2012-09-21 09:08:19 -07:00
parent 046e4d3a20
commit 06cb4dfe8f

View File

@ -53,6 +53,8 @@ func main() {
for index, indexName := range indexNames {
oldName := sourceMap[indexName]
newName := fmt.Sprintf("%03d-%s.go", index+1, indexName)
os.Rename(oldName, newName)
if oldName != newName {
os.Rename(oldName, newName)
}
}
}