mirror of
https://codeberg.org/git-pages/git-pages.git
synced 2026-05-14 03:01:48 +00:00
Add missing setConfigValue() branch.
This caused a crash when setting `PAGES_AUDIT_NODE_ID` or using `-print-config-env-vars`.
This commit is contained in:
@@ -205,6 +205,11 @@ func setConfigValue(reflValue reflect.Value, repr string) (err error) {
|
||||
if valueCast, err = strconv.ParseBool(repr); err == nil {
|
||||
reflValue.SetBool(valueCast)
|
||||
}
|
||||
case int:
|
||||
var parsed int64
|
||||
if parsed, err = strconv.ParseInt(repr, 10, strconv.IntSize); err == nil {
|
||||
reflValue.SetInt(parsed)
|
||||
}
|
||||
case uint:
|
||||
var parsed uint64
|
||||
if parsed, err = strconv.ParseUint(repr, 10, strconv.IntSize); err == nil {
|
||||
|
||||
Reference in New Issue
Block a user