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 ( import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"log"
"net/http" "net/http"
"orblivion/lbry-id/auth" "orblivion/lbry-id/auth"
"orblivion/lbry-id/store" "orblivion/lbry-id/store"
@ -34,7 +33,6 @@ func (s *Server) register(w http.ResponseWriter, req *http.Request) {
} else { } else {
internalServiceErrorJson(w, err, "Error registering") internalServiceErrorJson(w, err, "Error registering")
} }
log.Print(err)
return return
} }

View file

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

View file

@ -130,7 +130,7 @@ func (s *Server) postWallet(w http.ResponseWriter, req *http.Request) {
} }
var response []byte var response []byte
var walletResponse struct{} var walletResponse struct{} // no data to respond with, but keep it JSON
response, err = json.Marshal(walletResponse) response, err = json.Marshal(walletResponse)
if err != nil { if err != nil {

View file

@ -140,7 +140,8 @@ func TestServerPostWallet(t *testing.T) {
skipAuthCheck bool skipAuthCheck bool
// `new...` refers to what is being passed into the via POST request (and // `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 newEncryptedWallet wallet.EncryptedWallet
newSequence wallet.Sequence newSequence wallet.Sequence
newHmac wallet.WalletHmac newHmac wallet.WalletHmac