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
+1 -1
View File
@@ -51,7 +51,7 @@ func (level *Level) UnmarshalText(text []byte) error {
return err
}
*level = Level(l)
*level = l
return nil
}