aboutsummaryrefslogtreecommitdiffstats
path: root/bridge/launchpad/config.go
diff options
context:
space:
mode:
authorAmine <hilalyamine@gmail.com>2019-05-27 20:26:36 +0200
committerAmine Hilaly <hilalyamine@gmail.com>2019-05-29 22:58:01 +0200
commit5ea0cb138bd4152724afa73909db508e73452fd1 (patch)
tree94f6eb5668ca2be6f42ca1f49e1b40631477d41b /bridge/launchpad/config.go
parentaa439fae06df64883455039accfc81fa479f1a8d (diff)
downloadgit-bug-5ea0cb138bd4152724afa73909db508e73452fd1.tar.gz
Update documentation and function naming
Co-Authored-By: Michael Muré <batolettre@gmail.com>
Diffstat (limited to 'bridge/launchpad/config.go')
-rw-r--r--bridge/launchpad/config.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/bridge/launchpad/config.go b/bridge/launchpad/config.go
index c5f72c01..ef206fd5 100644
--- a/bridge/launchpad/config.go
+++ b/bridge/launchpad/config.go
@@ -92,7 +92,10 @@ func promptProjectName() (string, error) {
func validateProject(project string) (bool, error) {
url := fmt.Sprintf("%s/%s", apiRoot, project)
- resp, err := http.Get(url)
+ client := := &http.Client{
+ Timeout: defaultTimeout,
+ }
+ resp, err := client.Get(url)
if err != nil {
return false, err
}