chore: linter: perfsprint

Signed-off-by: Jakob Borg <jakob@kastelo.net>
This commit is contained in:
Jakob Borg
2025-10-23 22:48:54 +02:00
parent c883f49a24
commit 98cf5872e9
9 changed files with 17 additions and 16 deletions
+2 -3
View File
@@ -7,7 +7,6 @@
package osutil
import (
"fmt"
"path/filepath"
"github.com/syncthing/syncthing/lib/fs"
@@ -19,7 +18,7 @@ type TraversesSymlinkError struct {
}
func (e *TraversesSymlinkError) Error() string {
return fmt.Sprintf("traverses symlink: %s", e.path)
return "traverses symlink: " + e.path
}
// NotADirectoryError is an error indicating an expected path is not a directory
@@ -28,7 +27,7 @@ type NotADirectoryError struct {
}
func (e *NotADirectoryError) Error() string {
return fmt.Sprintf("not a directory: %s", e.path)
return "not a directory: " + e.path
}
// TraversesSymlink returns an error if any path component of name (including name