Avoid unnecessary conversion

No need to convert here.
This commit is contained in:
Christian Muehlhaeuser 2019-07-20 03:29:10 +02:00
parent 07a84ee741
commit 0c8c93fe4d
No known key found for this signature in database
GPG Key ID: 3CF9FA45CA1EBB7E
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ func (level *Level) UnmarshalText(text []byte) error {
return err
}
*level = Level(l)
*level = l
return nil
}