Small nit.

This commit is contained in:
Sascha L. Teichmann 2015-07-25 20:39:05 +02:00
parent 06c8ef8f88
commit fed5b32469
1 changed files with 2 additions and 3 deletions

View File

@ -216,9 +216,8 @@ func checkLastModified(w http.ResponseWriter, r *http.Request, modtime time.Time
}
func toUint(s string) uint {
var err error
var x int
if x, err = strconv.Atoi(s); err != nil {
x, err := strconv.Atoi(s)
if err != nil {
log.Printf("WARN: Cannot convert to int: %s\n", err)
return 0
}