Skip to content
This repository has been archived by the owner on Jun 5, 2021. It is now read-only.

Commit

Permalink
Optimize text attributes
Browse files Browse the repository at this point in the history
We can apply same restrictions as for other attributes and
use raw subslice directly.
  • Loading branch information
ernado committed Jul 16, 2019
1 parent 930f124 commit 68274f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion textattrs.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,6 @@ func (v *TextAttribute) GetFromAs(m *Message, t AttrType) error {
if err != nil {
return err
}
*v = append((*v)[:0], a...)
*v = a
return nil
}

0 comments on commit 68274f5

Please sign in to comment.