Prevent double render
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing

This commit is contained in:
Râu Cao 2023-02-23 17:54:34 +08:00
parent e580cc9991
commit b87b9c2437
Signed by: raucao
GPG Key ID: 15E65F399D084BA9

View File

@ -19,7 +19,7 @@ class LnurlpayController < ApplicationController
end end
def keysend def keysend
http_status :not_found unless Setting.lndhub_keysend_enabled? http_status :not_found and return unless Setting.lndhub_keysend_enabled?
render json: { render json: {
status: "OK", status: "OK",
@ -90,6 +90,6 @@ class LnurlpayController < ApplicationController
private private
def check_feature_enabled def check_feature_enabled
http_status :not_found if !Setting.lndhub_enabled? http_status :not_found unless Setting.lndhub_enabled?
end end
end end