diff options
author | Amine <hilalyamine@gmail.com> | 2019-05-27 20:26:36 +0200 |
---|---|---|
committer | Amine Hilaly <hilalyamine@gmail.com> | 2019-05-29 22:58:01 +0200 |
commit | 5ea0cb138bd4152724afa73909db508e73452fd1 (patch) | |
tree | 94f6eb5668ca2be6f42ca1f49e1b40631477d41b /bridge/launchpad | |
parent | aa439fae06df64883455039accfc81fa479f1a8d (diff) | |
download | git-bug-5ea0cb138bd4152724afa73909db508e73452fd1.tar.gz |
Update documentation and function naming
Co-Authored-By: Michael Muré <batolettre@gmail.com>
Diffstat (limited to 'bridge/launchpad')
-rw-r--r-- | bridge/launchpad/config.go | 5 |
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 } |