mirror of
https://codeberg.org/scip/kageviewer.git
synced 2025-12-16 20:20:58 +01:00
fix more of them
This commit is contained in:
@@ -53,8 +53,7 @@ Options:
|
||||
--map-slider <name> Map Slider uniform to <name>
|
||||
--map-mouse <name> Map Mouse uniform to <name>
|
||||
-d --debug Show debugging output
|
||||
-v --version Show program version
|
||||
`
|
||||
-v --version Show program version`
|
||||
)
|
||||
|
||||
type Config struct {
|
||||
@@ -182,13 +181,13 @@ func SanitiyCheck(conf *Config) error {
|
||||
|
||||
pos := strings.Split(conf.Posision, "x")
|
||||
if len(geo) != 2 {
|
||||
return fmt.Errorf(poserr)
|
||||
return errors.New(poserr)
|
||||
}
|
||||
|
||||
x, errx := strconv.Atoi(pos[0])
|
||||
y, erry := strconv.Atoi(pos[1])
|
||||
if errx != nil || erry != nil {
|
||||
return fmt.Errorf(poserr)
|
||||
return errors.New(poserr)
|
||||
}
|
||||
|
||||
conf.X = x
|
||||
|
||||
Reference in New Issue
Block a user