mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-01 05:01:47 +02:00
HostPort use uint16 datatype now
This commit is contained in:
parent
0a58bcc0ef
commit
bcf2defd8a
5 changed files with 26 additions and 19 deletions
|
@ -53,6 +53,10 @@ func ValidateNotEmpty(value any, name string) []string {
|
|||
if v.IsZero() {
|
||||
isValid = false
|
||||
}
|
||||
case uint16:
|
||||
if v == 0 {
|
||||
isValid = false
|
||||
}
|
||||
case int64:
|
||||
if v == 0 {
|
||||
isValid = false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue