Comments, remove some old junk
This commit is contained in:
parent
3829155308
commit
bce47979f6
4 changed files with 3 additions and 5 deletions
|
@ -3,7 +3,6 @@ package server
|
|||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"log"
|
||||
"net/http"
|
||||
"orblivion/lbry-id/auth"
|
||||
"orblivion/lbry-id/store"
|
||||
|
@ -34,7 +33,6 @@ func (s *Server) register(w http.ResponseWriter, req *http.Request) {
|
|||
} else {
|
||||
internalServiceErrorJson(w, err, "Error registering")
|
||||
}
|
||||
log.Print(err)
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
@ -39,7 +39,6 @@ func TestServerRegisterErrors(t *testing.T) {
|
|||
tt := []struct {
|
||||
name string
|
||||
email string
|
||||
requestBody string
|
||||
expectedStatusCode int
|
||||
expectedErrorString string
|
||||
|
||||
|
|
|
@ -130,7 +130,7 @@ func (s *Server) postWallet(w http.ResponseWriter, req *http.Request) {
|
|||
}
|
||||
|
||||
var response []byte
|
||||
var walletResponse struct{}
|
||||
var walletResponse struct{} // no data to respond with, but keep it JSON
|
||||
response, err = json.Marshal(walletResponse)
|
||||
|
||||
if err != nil {
|
||||
|
|
|
@ -140,7 +140,8 @@ func TestServerPostWallet(t *testing.T) {
|
|||
skipAuthCheck bool
|
||||
|
||||
// `new...` refers to what is being passed into the via POST request (and
|
||||
// what gets passed into SetWallet for the *non-error* cases below)
|
||||
// what we expect to get passed into SetWallet for the *non-error* cases
|
||||
// below)
|
||||
newEncryptedWallet wallet.EncryptedWallet
|
||||
newSequence wallet.Sequence
|
||||
newHmac wallet.WalletHmac
|
||||
|
|
Loading…
Add table
Reference in a new issue