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
|
// TrInit assigns the writer to a Trivella
|
||||||
func TrInit(writer io.Writer, level uint) *Trivella {
|
func TrInit(writer io.Writer, level uint) *Trivella {
|
||||||
var t Trivella
|
return &Trivella{Writer: writer, Level: level}
|
||||||
t.Writer = writer
|
|
||||||
t.Level = level
|
|
||||||
return &t
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Ruspa is the asynchronous worker that is in charge of collecting
|
// Ruspa is the asynchronous worker that is in charge of collecting
|
||||||
|
|
Loading…
Reference in a new issue