fix lint issue with function name 'tarId'

See https://github.com/golang/lint/issues/89 and
https://github.com/golang/lint/issues/124
This commit is contained in:
Panagiotis Cheilaris 2022-12-28 18:46:58 +01:00
parent 050ed616ae
commit a86a56cf3b

View file

@ -39,7 +39,7 @@ const (
)
// substitute a uid or gid of -1 (which was converted to 2^32 - 1) with zero
func tarId(id uint32) int {
func tarIdentifier(id uint32) int {
if int32(id) == -1 {
return 0
}
@ -56,8 +56,8 @@ func (d *Dumper) dumpNodeTar(ctx context.Context, node *restic.Node, w *tar.Writ
Name: filepath.ToSlash(relPath),
Size: int64(node.Size),
Mode: int64(node.Mode.Perm()), // cIS* constants are added later
Uid: tarId(node.UID),
Gid: tarId(node.GID),
Uid: tarIdentifier(node.UID),
Gid: tarIdentifier(node.GID),
Uname: node.User,
Gname: node.Group,
ModTime: node.ModTime,