Browse Source

Shorten code.

Blallo 5 years ago
parent
commit
6182d70b91
1 changed files with 1 additions and 4 deletions
  1. 1 4
      sizer/worker.go

+ 1 - 4
sizer/worker.go

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