From 8b9195e3e3506d576b39a23ca646c260dfacc808 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Wed, 1 May 2024 16:23:08 +0200 Subject: chore(gonf): fix errcheck and shadow errors --- pkg/permissions.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'pkg/permissions.go') diff --git a/pkg/permissions.go b/pkg/permissions.go index 91287c0..9a46b64 100644 --- a/pkg/permissions.go +++ b/pkg/permissions.go @@ -29,10 +29,10 @@ func (p *Permissions) resolve(filename string) (Status, error) { if group, err := user.LookupGroup(p.group.String()); err != nil { return BROKEN, err } else { - if groupId, err := strconv.Atoi(group.Gid); err != nil { + if groupID, err := strconv.Atoi(group.Gid); err != nil { return BROKEN, err } else { - g = &IntValue{groupId} + g = &IntValue{groupID} p.group = g } } @@ -46,10 +46,10 @@ func (p *Permissions) resolve(filename string) (Status, error) { if user, err := user.Lookup(p.user.String()); err != nil { return BROKEN, err } else { - if userId, err := strconv.Atoi(user.Uid); err != nil { + if userID, err := strconv.Atoi(user.Uid); err != nil { return BROKEN, err } else { - u = &IntValue{userId} + u = &IntValue{userID} p.group = u } } -- cgit v1.2.3