Use guard in fetch_legacy_config
Return the default value if nil
. This fixes a failure in the qa nightly build because missing values in a yaml file will return nil
instead of default, since fetch(key, default)
will only return the default if the key doesn't exist. If the key exists but there is no value, nil will be returned.
Edited by GitLab Release Tools Bot