fix more of them

This commit is contained in:
2025-11-26 20:44:51 +01:00
parent 718f30578d
commit b7d04097bb

View File

@@ -53,8 +53,7 @@ Options:
--map-slider <name> Map Slider uniform to <name> --map-slider <name> Map Slider uniform to <name>
--map-mouse <name> Map Mouse uniform to <name> --map-mouse <name> Map Mouse uniform to <name>
-d --debug Show debugging output -d --debug Show debugging output
-v --version Show program version -v --version Show program version`
`
) )
type Config struct { type Config struct {
@@ -182,13 +181,13 @@ func SanitiyCheck(conf *Config) error {
pos := strings.Split(conf.Posision, "x") pos := strings.Split(conf.Posision, "x")
if len(geo) != 2 { if len(geo) != 2 {
return fmt.Errorf(poserr) return errors.New(poserr)
} }
x, errx := strconv.Atoi(pos[0]) x, errx := strconv.Atoi(pos[0])
y, erry := strconv.Atoi(pos[1]) y, erry := strconv.Atoi(pos[1])
if errx != nil || erry != nil { if errx != nil || erry != nil {
return fmt.Errorf(poserr) return errors.New(poserr)
} }
conf.X = x conf.X = x