From 065e1a43ccebdef0125eb0c135e84b2dd7dccd49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Senart?= Date: Tue, 25 Feb 2014 01:14:16 +0000 Subject: [PATCH] Simplify stats constructor --- stressdisk.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/stressdisk.go b/stressdisk.go index d6c0b15..9d09bd5 100644 --- a/stressdisk.go +++ b/stressdisk.go @@ -94,9 +94,7 @@ type Stats struct { // NewStats cretates an initialised Stats func NewStats() *Stats { - stats := Stats{} - stats.start = time.Now() - return &stats + return &Stats{start: time.Now()} } // String convert the Stats to a string for printing