Skip to content
Myr

skip unnecessary variable assignment in timeFormat (#2761)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by ziheng · committed by GitHub · parent be860ec · Browse files · 1 file+1 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−2 removed

  • other:+1 added−2 removed

1 file+1 added−2 removed

modified:recovery.go+1 added-2 removed
165 unmodified lines
166}167168// timeFormat returns a customized time string for logger.169func timeFormat(t time.Time) string {170 timeString := t.Format("2006/01/02 - 15:04:05")171 return timeString170 return t.Format("2006/01/02 - 15:04:05")171}