Shorten code.

This commit is contained in:
Blallo 2019-05-23 09:46:14 +02:00
parent 4ad32f9026
commit 6182d70b91
No known key found for this signature in database
GPG key ID: 0CBE577C9B72DC3F

View file

@ -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