Skip to content

Commit 3672ffd

Browse files
committed
nit
1 parent fc0d6a1 commit 3672ffd

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

l9.go

+1-4
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,7 @@ func (s L9) AppendText(b []byte) ([]byte, error) {
4343
return b, nil
4444
}
4545

46-
func (s L9) MarshalText() ([]byte, error) {
47-
b := make([]byte, 0, 9)
48-
return s.AppendText(b)
49-
}
46+
func (s L9) MarshalText() ([]byte, error) { return s.AppendText(make([]byte, 0, 9)) }
5047

5148
func (s *L9) UnmarshalText(b []byte) error {
5249
if len(b) != 9 {

0 commit comments

Comments
 (0)