1
0
Fork 0
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:
Kane York 2016-01-17 18:01:21 -08:00
parent 387ada9c9c
commit 7654dcdf8d
10 changed files with 47 additions and 89 deletions

View file

@ -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
}