Skip to content
Myr

refactor: use bytes.ReplaceAll directly (#3455)

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

authored by lgbgbl · committed by GitHub · parent 457fabd · Browse files · 1 file+1 added−1 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−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:recovery.go+1 added-1 removed
162 unmodified lines
163 }164 if period := bytes.Index(name, dot); period >= 0 {165 name = name[period+1:]166 }167 name = bytes.Replace(name, centerDot, dot, -1)167 name = bytes.ReplaceAll(name, centerDot, dot)168 return name169}170171// timeFormat returns a customized time string for logger.
3 unmodified lines