mirror of
https://github.com/IllusionMan1212/gorc.git
synced 2026-10-24 02:12:33 +00:00
chore: upgrade dependencies. remove deprecated code. conform to linter style
This commit is contained in:
@@ -24,7 +24,7 @@ import (
|
||||
|
||||
func NoSpacesValidation(input string) error {
|
||||
if strings.Contains(input, " ") {
|
||||
return errors.New("Field cannot contain spaces")
|
||||
return errors.New("field cannot contain spaces")
|
||||
}
|
||||
|
||||
return nil
|
||||
@@ -37,7 +37,7 @@ func ValidatePort(input string) error {
|
||||
}
|
||||
|
||||
if pNum < 1 || pNum > 65535 {
|
||||
return errors.New("Invalid port number")
|
||||
return errors.New("invalid port number")
|
||||
}
|
||||
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user