Shorten code.
This commit is contained in:
parent
4ad32f9026
commit
6182d70b91
1 changed files with 1 additions and 4 deletions
|
@ -34,10 +34,7 @@ func (t *Trivella) Scendi() *Trivella {
|
|||
|
||||
// TrInit assigns the writer to a Trivella
|
||||
func TrInit(writer io.Writer, level uint) *Trivella {
|
||||
var t Trivella
|
||||
t.Writer = writer
|
||||
t.Level = level
|
||||
return &t
|
||||
return &Trivella{Writer: writer, Level: level}
|
||||
}
|
||||
|
||||
// Ruspa is the asynchronous worker that is in charge of collecting
|
||||
|
|
Loading…
Reference in a new issue