mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-09-15 17:46:55 +00:00
Source cleanup, and some string copies
This commit is contained in:
parent
387ada9c9c
commit
7654dcdf8d
10 changed files with 47 additions and 89 deletions
|
@ -32,6 +32,7 @@ func (p *StringPool) Intern(s string) Command {
|
|||
if exists {
|
||||
return ss
|
||||
}
|
||||
p.lookup[s] = Command(string([]byte(s)))
|
||||
return s
|
||||
ss = Command(string([]byte(s))) // make a copy
|
||||
p.lookup[s] = ss
|
||||
return ss
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue