Skip to content

Commit

Permalink
Don't use named return value
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Swenson committed Dec 2, 2022
1 parent 2eb67ee commit b68c43a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -497,10 +497,11 @@ var peTypes = map[uint16]string{

// additionalNotesAboutCommand tries to get additional information about a command that might help diagnose
// why it won't run correctly. It runs as a best effort only.
func additionalNotesAboutCommand(path string) (notes string) {
func additionalNotesAboutCommand(path string) string {
notes := ""
stat, err := os.Stat(path)
if err != nil {
return
return notes
}

notes += "\nAdditional notes about plugin:"
Expand All @@ -518,7 +519,7 @@ func additionalNotesAboutCommand(path string) (notes string) {
}
notes += fmt.Sprintf(" PE architecture: %s (current architecture: %s)\n", machine, runtime.GOARCH)
}
return
return notes
}

// Start the underlying subprocess, communicating with it to negotiate
Expand Down

0 comments on commit b68c43a

Please sign in to comment.