mirror of
https://bitbucket.org/s_l_teichmann/mtsatellite
synced 2025-01-11 17:30:18 +01:00
Small nit.
This commit is contained in:
parent
06c8ef8f88
commit
fed5b32469
@ -216,9 +216,8 @@ func checkLastModified(w http.ResponseWriter, r *http.Request, modtime time.Time
|
|||||||
}
|
}
|
||||||
|
|
||||||
func toUint(s string) uint {
|
func toUint(s string) uint {
|
||||||
var err error
|
x, err := strconv.Atoi(s)
|
||||||
var x int
|
if err != nil {
|
||||||
if x, err = strconv.Atoi(s); err != nil {
|
|
||||||
log.Printf("WARN: Cannot convert to int: %s\n", err)
|
log.Printf("WARN: Cannot convert to int: %s\n", err)
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user