hooks: Remove unnecessary explicit slice creation

This commit is contained in:
Bouke van der Bijl 2014-03-11 10:45:27 -04:00
parent 1399b22d12
commit 927450cad5
1 changed files with 0 additions and 4 deletions

View File

@ -9,10 +9,6 @@ type levelHooks map[Level][]Hook
func (hooks levelHooks) Add(hook Hook) {
for _, level := range hook.Levels() {
if _, ok := hooks[level]; !ok {
hooks[level] = make([]Hook, 0, 1)
}
hooks[level] = append(hooks[level], hook)
}
}