Skip to content

Commit

Permalink
Fix linter warning
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha committed Dec 25, 2023
1 parent 8320584 commit f9e0093
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/check-table/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func main() {
_ = clientgoscheme.AddToScheme(scheme)
crdinstall.Install(scheme)

ctrl.SetLogger(klogr.New())
ctrl.SetLogger(klogr.New()) // nolint:staticcheck
cfg := ctrl.GetConfigOrDie()

hc, err := rest.HTTPClientFor(cfg)
Expand Down
4 changes: 2 additions & 2 deletions cmd/icon-namer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ var (
func main() {
var missing []string
var img string
allIcons := sets.NewString()
allIcons := sets.New[string]()

err := filepath.Walk(dirResources, func(path string, info os.FileInfo, err error) error {
if err != nil {
Expand Down Expand Up @@ -206,7 +206,7 @@ func groupDir(group string) string {
return group
}

func processIcons(icons []helmshared.ImageSpec, allIcons sets.String, missing []string) ([]helmshared.ImageSpec, []string) {
func processIcons(icons []helmshared.ImageSpec, allIcons sets.Set[string], missing []string) ([]helmshared.ImageSpec, []string) {
m := map[string]string{} // mime -> url
for _, entry := range icons {
m[entry.Type] = entry.Source
Expand Down
2 changes: 1 addition & 1 deletion cmd/print-layout/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func NewClient() (client.Client, error) {
_ = clientgoscheme.AddToScheme(scheme)
crdinstall.Install(scheme)

ctrl.SetLogger(klogr.New())
ctrl.SetLogger(klogr.New()) // nolint:staticcheck
cfg := ctrl.GetConfigOrDie()
cfg.QPS = 100
cfg.Burst = 100
Expand Down

0 comments on commit f9e0093

Please sign in to comment.