Skip to content
This repository was archived by the owner on Aug 12, 2025. It is now read-only.

Commit 59643e0

Browse files
committed
style: rename unused variables to _
Signed-off-by: Chris Privitere <[email protected]>
1 parent 01c8cd8 commit 59643e0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

api/v1beta1/packetmachinetemplate_webhook.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func (m *PacketMachineTemplate) ValidateCreate() error {
4242
}
4343

4444
// ValidateUpdate implements webhook.Validator so a webhook will be registered for the type.
45-
func (m *PacketMachineTemplate) ValidateUpdate(old runtime.Object) error {
45+
func (m *PacketMachineTemplate) ValidateUpdate(_ runtime.Object) error {
4646
machineTemplateLog.Info("validate update", "name", m.Name)
4747

4848
return nil

controllers/packetcluster_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ func (r *PacketClusterReconciler) reconcileNormal(ctx context.Context, clusterSc
161161
return ctrl.Result{}, nil
162162
}
163163

164-
func (r *PacketClusterReconciler) reconcileDelete(ctx context.Context, clusterScope *scope.ClusterScope) (ctrl.Result, error) {
164+
func (r *PacketClusterReconciler) reconcileDelete(_ context.Context, _ *scope.ClusterScope) (ctrl.Result, error) {
165165
// Initially I created this handler to remove an elastic IP when a cluster
166166
// gets delete, but it does not sound like a good idea. It is better to
167167
// leave to the users the ability to decide if they want to keep and resign

pkg/cloud/packet/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ func (p *Client) GetDeviceByTags(ctx context.Context, project string, tags []str
244244

245245
// CreateIP reserves an IP via Packet API. The request fails straight if no IP are available for the specified project.
246246
// This prevent the cluster to become ready.
247-
func (p *Client) CreateIP(ctx context.Context, namespace, clusterName, projectID, facility, metro string) (net.IP, error) {
247+
func (p *Client) CreateIP(ctx context.Context, _, clusterName, projectID, facility, metro string) (net.IP, error) {
248248
failOnApprovalRequired := true
249249
req := metal.IPReservationRequestInput{
250250
Type: "public_ipv4",

0 commit comments

Comments
 (0)