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/render"
"golang.org/x/crypto/bcrypt"
"io/ioutil"
"net/http"
"os"
"strings"
@ -260,7 +259,6 @@ func sendEmailToken(w http.ResponseWriter, token string, name string, email stri
return returnMessage, ok
}
defer resp.Body.Close()
respbody, _ := ioutil.ReadAll(resp.Body)
returnMessage.Message = "verification email sent"
ok = true
return returnMessage, ok