Merge pull request #228 from PaladinTyrion/optimizeSth

Too many of your codes could be optimized
This commit is contained in:
Liang Ding 2015-04-27 14:10:23 +08:00
commit f1b258ff7f
1 changed files with 1 additions and 3 deletions

View File

@ -87,9 +87,7 @@ func Load() {
// AddHandler adds the specified handlers to user event queues.
func (uq *UserEventQueue) AddHandler(handlers ...Handler) {
for _, handler := range handlers {
uq.Handlers = append(uq.Handlers, handler)
}
uq.Handlers = append(uq.Handlers, handlers...)
}
// New initializes a user event queue with the specified wide session id.