diff options
author | Roc Yu <rociiu0112@gmail.com> | 2018-07-18 16:32:49 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2018-07-18 16:32:49 +0800 |
commit | 323428865f65be0c637dfc35fc9728f3108c040a (patch) | |
tree | 92e7a13f86cb9d5f743d2f0a19e8bc85a75c6273 /accounts/url.go | |
parent | 65c91ad5e7f7c8aadbdc114ae443dc4c0e38489d (diff) | |
download | dexon-323428865f65be0c637dfc35fc9728f3108c040a.tar.gz dexon-323428865f65be0c637dfc35fc9728f3108c040a.tar.zst dexon-323428865f65be0c637dfc35fc9728f3108c040a.zip |
accounts: add unit tests for URL (#17182)
Diffstat (limited to 'accounts/url.go')
-rw-r--r-- | accounts/url.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/accounts/url.go b/accounts/url.go index 21df668ef..a5add1021 100644 --- a/accounts/url.go +++ b/accounts/url.go @@ -76,12 +76,12 @@ func (u URL) MarshalJSON() ([]byte, error) { // UnmarshalJSON parses url. func (u *URL) UnmarshalJSON(input []byte) error { - var textUrl string - err := json.Unmarshal(input, &textUrl) + var textURL string + err := json.Unmarshal(input, &textURL) if err != nil { return err } - url, err := parseURL(textUrl) + url, err := parseURL(textURL) if err != nil { return err } |