add missing "return" to GetName error.

This commit is contained in:
fiatjaf 2021-08-20 10:08:30 -03:00
parent 2f6e17073f
commit 23316c9af8

View File

@ -18,6 +18,7 @@ func handleLNURL(w http.ResponseWriter, r *http.Request) {
log.Error().Err(err).Str("name", username).Msg("failed to get name")
json.NewEncoder(w).Encode(lnurl.ErrorResponse(fmt.Sprintf(
"failed to get name %s", username)))
return
}
log.Info().Str("username", username).Msg("got lnurl request")