mirror of
https://github.com/kopia/kopia.git
synced 2026-05-13 17:25:13 -04:00
nit: use strings.Replacer (#1476)
This commit is contained in:
@@ -70,9 +70,7 @@ func TempDirectory(tb testing.TB) string {
|
||||
func TempLogDirectory(t *testing.T) string {
|
||||
t.Helper()
|
||||
|
||||
cleanName := strings.ReplaceAll(strings.ReplaceAll(strings.ReplaceAll(
|
||||
t.Name(),
|
||||
"/", "_"), "\\", "_"), ":", "_")
|
||||
cleanName := strings.NewReplacer("/", "_", "\\", "_", ":", "_").Replace(t.Name())
|
||||
|
||||
t.Helper()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user