Skip to content

Commit

Permalink
Avoid unnecessary conversion
Browse files Browse the repository at this point in the history
No need to convert here.
  • Loading branch information
muesli committed Jul 20, 2019
1 parent 07a84ee commit 0c8c93f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion logrus.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func (level *Level) UnmarshalText(text []byte) error {
return err
}

*level = Level(l)
*level = l

return nil
}
Expand Down

0 comments on commit 0c8c93f

Please sign in to comment.