master > master: code go - minor

This commit is contained in:
RD 2021-11-04 11:17:31 +01:00
parent 552c3197e8
commit 31b3c19bf9

View File

@ -24,9 +24,11 @@ func actionShowVersion() (bool, error) {
func actionRunOnConfig() (bool, error) {
path, cancel, err := logging.Prompt("Pfad zur Configdatei bitte eingeben:")
if cancel {
err = nil
} else if err == nil {
err = RunNonInteractive(path)
return true, nil
}
return cancel, err
if err != nil {
return false, err
}
err = RunNonInteractive(path)
return false, err
}