Skip to content

Commit

Permalink
Drop redundant fmt.Sprintf
Browse files Browse the repository at this point in the history
Arguments are already strings - there is no need for Sprintf.

Signed-off-by: Daniel Swarbrick <daniel.swarbrick@gmail.com>
  • Loading branch information
dswarbrick authored and boynux committed Jun 22, 2024
1 parent 3af75d4 commit 0c2b754
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,6 @@ func main() {
w.Write([]byte(indexContent))
})

log.Println("Listening on", fmt.Sprintf("%s", cfg.ListenAddress))
log.Fatal(http.ListenAndServe(fmt.Sprintf("%s", cfg.ListenAddress), nil))
log.Println("Listening on", cfg.ListenAddress)
log.Fatal(http.ListenAndServe(cfg.ListenAddress, nil))
}

0 comments on commit 0c2b754

Please sign in to comment.