Merge pull request #2872 from weaveworks/small-mem-reductions

Small memory-allocation reduction
This commit is contained in:
Bryan Boreham
2017-09-30 18:46:00 +01:00
committed by GitHub

View File

@@ -238,6 +238,9 @@ func renderTime(t time.Time) string {
}
func parseTime(s string) time.Time {
if s == "" {
return time.Time{}
}
t, _ := time.Parse(time.RFC3339Nano, s)
return t
}