mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
parent
e48c0fb562
commit
d86ab015f7
45 changed files with 68 additions and 199 deletions
|
|
@ -496,9 +496,7 @@ func parseScript(line string, scripts map[string][]Script) {
|
|||
s, ok := scripts[name]
|
||||
if !ok || len(s) == cap(s) {
|
||||
ns := make([]Script, len(s), len(s)+100)
|
||||
for i, sc := range s {
|
||||
ns[i] = sc
|
||||
}
|
||||
copy(ns, s)
|
||||
s = ns
|
||||
}
|
||||
s = s[0 : len(s)+1]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue