skip unnecessary variable assignment in timeFormat (#2761)
This commit is contained in:
parent
be860ec157
commit
09f6cff92a
@ -167,6 +167,5 @@ func function(pc uintptr) []byte {
|
||||
|
||||
// timeFormat returns a customized time string for logger.
|
||||
func timeFormat(t time.Time) string {
|
||||
timeString := t.Format("2006/01/02 - 15:04:05")
|
||||
return timeString
|
||||
return t.Format("2006/01/02 - 15:04:05")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user