From a86a56cf3bef3fb427e03fecd12abbc71501702e Mon Sep 17 00:00:00 2001 From: Panagiotis Cheilaris Date: Wed, 28 Dec 2022 18:46:58 +0100 Subject: [PATCH] fix lint issue with function name 'tarId' See https://github.com/golang/lint/issues/89 and https://github.com/golang/lint/issues/124 --- internal/dump/tar.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/dump/tar.go b/internal/dump/tar.go index aa8064fe1..1a68331d2 100644 --- a/internal/dump/tar.go +++ b/internal/dump/tar.go @@ -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,