Apply MR review suggestions

parent d8f6c5c7
...@@ -232,10 +232,7 @@ func (s *RegisterCommand) addRunner(runner *common.RunnerConfig) { ...@@ -232,10 +232,7 @@ func (s *RegisterCommand) addRunner(runner *common.RunnerConfig) {
} }
func (s *RegisterCommand) askRunner() { func (s *RegisterCommand) askRunner() {
s.URL = s.ask("url", "Enter the GitLab instance URL [https://gitlab.com/]:", true) s.URL = s.ask("url", "Enter the GitLab instance URL (for example, https://gitlab.com/):")
if s.URL == "" {
s.URL = "https://gitlab.com/"
}
if s.Token != "" { if s.Token != "" {
logrus.Infoln("Token specified trying to verify runner...") logrus.Infoln("Token specified trying to verify runner...")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment