From b4682e526cd5184cf162acd7691a25494ee9cbd2 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Mon, 12 Dec 2022 13:20:41 +0100 Subject: Discovery: Minor style changes with variable names --- internal/discovery/discovery.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'internal/discovery') 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 -- cgit v1.2.3