Fix go vet issues
This commit is contained in:
parent
caaa30c747
commit
cd6a63fc57
6 changed files with 15 additions and 15 deletions
|
|
@ -111,7 +111,7 @@ func getWgTunnelInfo(w http.ResponseWriter, r *http.Request, ps httprouter.Param
|
|||
pt.PubKey, _ = base64.StdEncoding.DecodeString(pubkey)
|
||||
version = 3
|
||||
} else {
|
||||
http.Error(w, fmt.Sprintf("{errmsg:\"No public key given\"}", err), http.StatusBadRequest)
|
||||
http.Error(w, fmt.Sprintf("{errmsg:\"No public key given\"}"), http.StatusBadRequest)
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
Reference in a new issue