Skip to content

Commit

Permalink
make printBuildinfoAndExit not exported
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbozhenko committed Dec 27, 2024
1 parent 70443b5 commit e680e5b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion server/opts.go
Original file line number Diff line number Diff line change
Expand Up @@ -5775,7 +5775,7 @@ func ConfigureOptions(fs *flag.FlagSet, args []string, printVersion, printHelp,
}

if showBuildInfo {
PrintBuildinfoAndExit()
printBuildinfoAndExit()
return nil, nil
}

Expand Down
4 changes: 2 additions & 2 deletions server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -1584,8 +1584,8 @@ func PrintServerAndExit() {
os.Exit(0)
}

// PrintBuildinfoAndExit will print out https://pkg.go.dev/runtime/debug#BuildInfo and exit.
func PrintBuildinfoAndExit() {
// printBuildinfoAndExit will print out https://pkg.go.dev/runtime/debug#BuildInfo and exit.
func printBuildinfoAndExit() {
bi, ok := debug.ReadBuildInfo()
if !ok || bi == nil {
//nolint:forbidigo
Expand Down

0 comments on commit e680e5b

Please sign in to comment.