Add go-critic

This commit is contained in:
9seconds
2018-07-18 08:53:04 +03:00
parent c1b862c1e9
commit c5f99d17b7
7 changed files with 37 additions and 33 deletions
+3 -3
View File
@@ -42,7 +42,7 @@ func makeTMeURL(values url.Values) string {
}
func makeQRCodeURL(data string) string {
QRURL := url.URL{
qr := url.URL{
Scheme: "https",
Host: "api.qrserver.com",
Path: "v1/create-qr-code",
@@ -52,7 +52,7 @@ func makeQRCodeURL(data string) string {
values.Set("qzone", "4")
values.Set("format", "svg")
values.Set("data", data)
QRURL.RawQuery = values.Encode()
qr.RawQuery = values.Encode()
return QRURL.String()
return qr.String()
}