Skip to content

Commit 1a60159

Browse files
committed
Golang: goerr113 is replaced by err113 in 1.58.0
1 parent f3d4608 commit 1a60159

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

internal/bridge/client.go

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ func (c *Client) CreateAuthObject(ctx context.Context, authn AuthObject) (AuthOb
382382
err = fmt.Errorf("%w: %s", errAuthentication, body)
383383

384384
default:
385-
//nolint:goerr113 // This is intentionally dynamic.
385+
//nolint:err113 // This is intentionally dynamic.
386386
err = fmt.Errorf("%v: %s", response.Status, body)
387387
}
388388
}
@@ -409,7 +409,7 @@ func (c *Client) CreateInstallation(ctx context.Context) (Installation, error) {
409409
}
410410

411411
default:
412-
//nolint:goerr113 // This is intentionally dynamic.
412+
//nolint:err113 // This is intentionally dynamic.
413413
err = fmt.Errorf("%v: %s", response.Status, body)
414414
}
415415
}
@@ -445,7 +445,7 @@ func (c *Client) ListClusters(ctx context.Context, apiKey, teamId string) ([]*Cl
445445
}
446446

447447
default:
448-
//nolint:goerr113 // This is intentionally dynamic.
448+
//nolint:err113 // This is intentionally dynamic.
449449
err = fmt.Errorf("%v: %s", response.Status, body)
450450
}
451451
}
@@ -486,7 +486,7 @@ func (c *Client) CreateCluster(
486486
}
487487

488488
default:
489-
//nolint:goerr113 // This is intentionally dynamic.
489+
//nolint:err113 // This is intentionally dynamic.
490490
err = fmt.Errorf("%v: %s", response.Status, body)
491491
}
492492
}
@@ -531,7 +531,7 @@ func (c *Client) DeleteCluster(ctx context.Context, apiKey, id string) (*Cluster
531531
err = nil
532532

533533
default:
534-
//nolint:goerr113 // This is intentionally dynamic.
534+
//nolint:err113 // This is intentionally dynamic.
535535
err = fmt.Errorf("%v: %s", response.Status, body)
536536
}
537537
}
@@ -565,7 +565,7 @@ func (c *Client) GetCluster(ctx context.Context, apiKey, id string) (*ClusterApi
565565
}
566566

567567
default:
568-
//nolint:goerr113 // This is intentionally dynamic.
568+
//nolint:err113 // This is intentionally dynamic.
569569
err = fmt.Errorf("%v: %s", response.Status, body)
570570
}
571571
}
@@ -599,7 +599,7 @@ func (c *Client) GetClusterStatus(ctx context.Context, apiKey, id string) (*Clus
599599
}
600600

601601
default:
602-
//nolint:goerr113 // This is intentionally dynamic.
602+
//nolint:err113 // This is intentionally dynamic.
603603
err = fmt.Errorf("%v: %s", response.Status, body)
604604
}
605605
}
@@ -633,7 +633,7 @@ func (c *Client) GetClusterUpgrade(ctx context.Context, apiKey, id string) (*Clu
633633
}
634634

635635
default:
636-
//nolint:goerr113 // This is intentionally dynamic.
636+
//nolint:err113 // This is intentionally dynamic.
637637
err = fmt.Errorf("%v: %s", response.Status, body)
638638
}
639639
}
@@ -674,7 +674,7 @@ func (c *Client) UpgradeCluster(
674674
}
675675

676676
default:
677-
//nolint:goerr113 // This is intentionally dynamic.
677+
//nolint:err113 // This is intentionally dynamic.
678678
err = fmt.Errorf("%v: %s", response.Status, body)
679679
}
680680
}
@@ -709,7 +709,7 @@ func (c *Client) UpgradeClusterHA(ctx context.Context, apiKey, id, action string
709709
}
710710

711711
default:
712-
//nolint:goerr113 // This is intentionally dynamic.
712+
//nolint:err113 // This is intentionally dynamic.
713713
err = fmt.Errorf("%v: %s", response.Status, body)
714714
}
715715
}
@@ -747,7 +747,7 @@ func (c *Client) UpdateCluster(
747747
}
748748

749749
default:
750-
//nolint:goerr113 // This is intentionally dynamic.
750+
//nolint:err113 // This is intentionally dynamic.
751751
err = fmt.Errorf("%v: %s", response.Status, body)
752752
}
753753
}
@@ -777,7 +777,7 @@ func (c *Client) GetClusterRole(ctx context.Context, apiKey, clusterId, roleName
777777
}
778778

779779
default:
780-
//nolint:goerr113 // This is intentionally dynamic.
780+
//nolint:err113 // This is intentionally dynamic.
781781
err = fmt.Errorf("%v: %s", response.Status, body)
782782
}
783783
}
@@ -807,7 +807,7 @@ func (c *Client) ListClusterRoles(ctx context.Context, apiKey, id string) ([]*Cl
807807
}
808808

809809
default:
810-
//nolint:goerr113 // This is intentionally dynamic.
810+
//nolint:err113 // This is intentionally dynamic.
811811
err = fmt.Errorf("%v: %s", response.Status, body)
812812
}
813813
}

0 commit comments

Comments
 (0)