Skip to content

Commit

Permalink
fix fortunes
Browse files Browse the repository at this point in the history
  • Loading branch information
davidnewhall committed Jul 19, 2024
1 parent 46acb4d commit 4e1ff9b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/client/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,6 @@ func printCurlReply(resp *http.Response, body []byte) {

// Fortune returns a fortune.
func Fortune() string {
file, _ := bindata.Files.ReadFile("other/fortunes.txt")
fortunes := strings.Split(string(file), "\n%\n")

fortunes := strings.Split(bindata.Fortunes, "\n%\n")
return fortunes[rand.Intn(len(fortunes))] //nolint:gosec
}

0 comments on commit 4e1ff9b

Please sign in to comment.