Skip to content

Commit

Permalink
Rename lookupGroup -> lookupGroup
Browse files Browse the repository at this point in the history
  • Loading branch information
EduardGomezEscandell committed Mar 22, 2024
1 parent 12cf64a commit fae3d6b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion wsl-pro-service/internal/system/landscape.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func (s *System) writeConfig(landscapeConfig string) (err error) {
return err

Check warning on line 56 in wsl-pro-service/internal/system/landscape.go

View check run for this annotation

Codecov / codecov/patch

wsl-pro-service/internal/system/landscape.go#L56

Added line #L56 was not covered by tests
}

groupID, err := s.lookupGroup("landscape")
groupID, err := s.groupToGUID("landscape")
if err != nil {
return err
}
Expand Down
4 changes: 2 additions & 2 deletions wsl-pro-service/internal/system/system.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,8 @@ func (s *System) findCmdExe() (cmdExe string, err error) {
return "", fmt.Errorf("none of the mounted drives contains subpath %s", subPath)
}

// lookupGroup searches the group with the specified name and returns its GID.
func (s *System) lookupGroup(name string) (int, error) {
// groupToGUID searches the group with the specified name and returns its GID.
func (s *System) groupToGUID(name string) (int, error) {
group, err := s.backend.LookupGroup(name)
if err != nil {
return 0, err
Expand Down

0 comments on commit fae3d6b

Please sign in to comment.