diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-12-12 13:20:41 +0100 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-12-12 13:39:20 +0100 |
| commit | b4682e526cd5184cf162acd7691a25494ee9cbd2 (patch) | |
| tree | 95ba89f2f2b54247bde2d225adb6acb9d7ab33f8 /internal | |
| parent | 5db7ecf7dbbcc9fc1aa7ba4eb612012f423c7e79 (diff) | |
Discovery: Minor style changes with variable names
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/discovery/discovery.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/discovery/discovery.go b/internal/discovery/discovery.go index 32bec66..487d39a 100644 --- a/internal/discovery/discovery.go +++ b/internal/discovery/discovery.go @@ -25,16 +25,16 @@ type Discovery struct { // If it was unsuccessful it returns an error. func discoFile(jsonFile string, previousVersion uint64, structure interface{}) error { // Get json data - du := "https://disco.eduvpn.org/v2/" - fu := du + jsonFile - _, body, err := http.Get(fu) + URL := "https://disco.eduvpn.org/v2/" + jsonURL := URL + jsonFile + _, body, err := http.Get(jsonURL) if err != nil { return err } // Get signature sigFile := jsonFile + ".minisig" - sigURL := du + sigFile + sigURL := URL + sigFile _, sigBody, err := http.Get(sigURL) if err != nil { return err |
