mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-05-18 09:17:49 +08:00
chore: fix lint issues
G601: Implicit memory aliasing in for loop. (gosec) Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
parent
d0d8bfbca4
commit
dfb557b34f
@ -121,7 +121,7 @@ func (mb mergedBodies) JustAttributes() (hcl.Attributes, hcl.Diagnostics) {
|
|||||||
"Argument %q was already set at %s",
|
"Argument %q was already set at %s",
|
||||||
name, existing.NameRange.String(),
|
name, existing.NameRange.String(),
|
||||||
),
|
),
|
||||||
Subject: &attr.NameRange,
|
Subject: thisAttrs[name].NameRange.Ptr(),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
attrs[name] = attr
|
attrs[name] = attr
|
||||||
@ -192,7 +192,7 @@ func (mb mergedBodies) mergedContent(schema *hcl.BodySchema, partial bool) (*hcl
|
|||||||
"Argument %q was already set at %s",
|
"Argument %q was already set at %s",
|
||||||
name, existing.NameRange.String(),
|
name, existing.NameRange.String(),
|
||||||
),
|
),
|
||||||
Subject: &attr.NameRange,
|
Subject: thisContent.Attributes[name].NameRange.Ptr(),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
content.Attributes[name] = attr
|
content.Attributes[name] = attr
|
||||||
|
Loading…
x
Reference in New Issue
Block a user