remove some unneccessary type conversions

This commit is contained in:
Marten Seemann 2019-02-17 12:09:18 +08:00
parent 1e796fed4f
commit fbe8844006
7 changed files with 14 additions and 14 deletions

View file

@ -80,7 +80,7 @@ var _ = Describe("Log", func() {
DefaultLogger.SetLogTimeFormat(format)
DefaultLogger.SetLogLevel(LogLevelInfo)
DefaultLogger.Infof("info")
t, err := time.Parse(format, string(b.String()[:b.Len()-6]))
t, err := time.Parse(format, b.String()[:b.Len()-6])
Expect(err).ToNot(HaveOccurred())
Expect(t).To(BeTemporally("~", time.Now(), 25*time.Hour))
})