Fix up uneeded return

This commit is contained in:
Amarpreet Minhas 2020-01-20 15:21:56 -05:00
parent cba9967af0
commit 172dc2dc34

View file

@ -13,7 +13,6 @@ import (
"github.com/go-chi/jwtauth" "github.com/go-chi/jwtauth"
"github.com/go-chi/render" "github.com/go-chi/render"
"golang.org/x/crypto/bcrypt" "golang.org/x/crypto/bcrypt"
"io/ioutil"
"net/http" "net/http"
"os" "os"
"strings" "strings"
@ -260,7 +259,6 @@ func sendEmailToken(w http.ResponseWriter, token string, name string, email stri
return returnMessage, ok return returnMessage, ok
} }
defer resp.Body.Close() defer resp.Body.Close()
respbody, _ := ioutil.ReadAll(resp.Body)
returnMessage.Message = "verification email sent" returnMessage.Message = "verification email sent"
ok = true ok = true
return returnMessage, ok return returnMessage, ok