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) { func actionRunOnConfig() (bool, error) {
path, cancel, err := logging.Prompt("Pfad zur Configdatei bitte eingeben:") path, cancel, err := logging.Prompt("Pfad zur Configdatei bitte eingeben:")
if cancel { if cancel {
err = nil return true, nil
} else if err == nil { }
if err != nil {
return false, err
}
err = RunNonInteractive(path) err = RunNonInteractive(path)
} return false, err
return cancel, err
} }