Only use fmt.Sprint() when necessary

This commit is contained in:
2024-10-04 16:37:19 +02:00
parent 70d403d7d7
commit f28c204c52
5 changed files with 5 additions and 6 deletions

View File

@ -2,7 +2,6 @@ package calls
import (
"encoding/json"
"fmt"
"log"
"net/http"
"os"
@ -43,6 +42,6 @@ func ServePDF(c *b.Config) http.HandlerFunc {
return
}
http.ServeFile(w, r, fmt.Sprint(c.PDFDir, "/", r.PathValue("id")))
http.ServeFile(w, r, c.PDFDir+"/"+r.PathValue("id"))
}
}