spare some syscalls
This commit is contained in:
parent
046e4d3a20
commit
06cb4dfe8f
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user