Skip to content

Commit

Permalink
[lint] fix gosec's G601
Browse files Browse the repository at this point in the history
  • Loading branch information
tbelda-ems committed Feb 18, 2024
1 parent 795cbd1 commit 3fcc328
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/vccollector/host.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func (c *VcCollector) CollectHostInfo(
t = time.Now()

for _, hsMo := range hsMos {
s = &hsMo.Summary
s = &(hsMo.Summary)
r = s.Runtime
h = s.Hardware
if hostSt = c.getHostState(i, hsMo.Name); hostSt == nil {
Expand Down
2 changes: 1 addition & 1 deletion internal/vccollector/vm.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func (c *VcCollector) CollectVmsInfo(
t = time.Now()

for _, vm := range vmMos {
s = &vm.Summary
s = &(vm.Summary)
r = &s.Runtime
k = &s.Config
hostname = ""
Expand Down

0 comments on commit 3fcc328

Please sign in to comment.