1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2024-12-23 00:07:25 +00:00

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 // 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 { if int32(id) == -1 {
return 0 return 0
} }
@ -56,8 +56,8 @@ func (d *Dumper) dumpNodeTar(ctx context.Context, node *restic.Node, w *tar.Writ
Name: filepath.ToSlash(relPath), Name: filepath.ToSlash(relPath),
Size: int64(node.Size), Size: int64(node.Size),
Mode: int64(node.Mode.Perm()), // cIS* constants are added later Mode: int64(node.Mode.Perm()), // cIS* constants are added later
Uid: tarId(node.UID), Uid: tarIdentifier(node.UID),
Gid: tarId(node.GID), Gid: tarIdentifier(node.GID),
Uname: node.User, Uname: node.User,
Gname: node.Group, Gname: node.Group,
ModTime: node.ModTime, ModTime: node.ModTime,