Comments, remove some old junk

This commit is contained in:
Daniel Krol 2022-07-06 12:47:14 -04:00
parent 3829155308
commit bce47979f6
4 changed files with 3 additions and 5 deletions

View file

@ -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
}

View file

@ -39,7 +39,6 @@ func TestServerRegisterErrors(t *testing.T) {
tt := []struct {
name string
email string
requestBody string
expectedStatusCode int
expectedErrorString string

View file

@ -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 {

View file

@ -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