Skip to content

Commit

Permalink
Fix after CR
Browse files Browse the repository at this point in the history
  • Loading branch information
programmer04 committed Jul 1, 2024
1 parent e52740c commit 6a88b5b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions modules/manager/metadata/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package metadata

import (
"fmt"
"strings"
"runtime"
)

// -----------------------------------------------------------------------------
Expand Down Expand Up @@ -49,10 +49,9 @@ type Info struct {

// UserAgent returns the User-Agent string to use in all HTTP requests made by KGO.
func (inf Info) UserAgent() string {
org := strings.ToLower(inf.Organization)
return fmt.Sprintf("%s/%s (%s/%s) (%s)",
inf.ProjectName, inf.Release, runtime.GOOS, runtime.GOARCH, inf.Flavor,
)
inf.ProjectName, inf.Release, runtime.GOOS, runtime.GOARCH, inf.Flavor,
)
}

var (
Expand Down

0 comments on commit 6a88b5b

Please sign in to comment.