aboutsummaryrefslogtreecommitdiffstats
path: root/bridge/launchpad/config.go
diff options
context:
space:
mode:
authorMichael Muré <michael.mure@consensys.net>2018-12-17 13:05:05 +0100
committerMichael Muré <michael.mure@consensys.net>2018-12-17 13:05:05 +0100
commit47b2aa4cc1c20ae37d846da4ea71e09c0c918192 (patch)
tree143f7d7f5e823afeb0b9616b39996fc37e63c336 /bridge/launchpad/config.go
parentd26b1d08c71247dbc66a44e11a51f6b382ca9868 (diff)
downloadgit-bug-47b2aa4cc1c20ae37d846da4ea71e09c0c918192.tar.gz
launchpad: minor cleaning
Diffstat (limited to 'bridge/launchpad/config.go')
-rw-r--r--bridge/launchpad/config.go12
1 files changed, 8 insertions, 4 deletions
diff --git a/bridge/launchpad/config.go b/bridge/launchpad/config.go
index 8469dbd3..11a465be 100644
--- a/bridge/launchpad/config.go
+++ b/bridge/launchpad/config.go
@@ -25,6 +25,14 @@ func (*Launchpad) Configure(repo repository.RepoCommon) (core.Configuration, err
return conf, nil
}
+func (*Launchpad) ValidateConfig(conf core.Configuration) error {
+ if _, ok := conf[keyProject]; !ok {
+ return fmt.Errorf("missing %s key", keyProject)
+ }
+
+ return nil
+}
+
func promptProjectName() (string, error) {
for {
fmt.Print("Launchpad project name: ")
@@ -44,7 +52,3 @@ func promptProjectName() (string, error) {
return line, nil
}
}
-
-func (*Launchpad) ValidateConfig(conf core.Configuration) error {
- return nil
-}