Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
yelizariev committed Jul 20, 2024
1 parent 40c99ca commit 2cfac56
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ui/ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,7 @@ func renderForPrd(w io.Writer, c *content, cfg *config.Config, cfgJson string, i
randomIndex := rand.Intn(len(cfg.Ads))

// Access the random ad string
randomAd := cfg.Ads[randomIndex]
} else {
randomAd := ""
randomAd = *cfg.Ads[randomIndex]
}

return c.tpl.Execute(w, map[string]interface{}{
Expand Down

0 comments on commit 2cfac56

Please sign in to comment.