Prevent double render
This commit is contained in:
parent
e580cc9991
commit
b87b9c2437
@ -19,7 +19,7 @@ class LnurlpayController < ApplicationController
|
||||
end
|
||||
|
||||
def keysend
|
||||
http_status :not_found unless Setting.lndhub_keysend_enabled?
|
||||
http_status :not_found and return unless Setting.lndhub_keysend_enabled?
|
||||
|
||||
render json: {
|
||||
status: "OK",
|
||||
@ -90,6 +90,6 @@ class LnurlpayController < ApplicationController
|
||||
private
|
||||
|
||||
def check_feature_enabled
|
||||
http_status :not_found if !Setting.lndhub_enabled?
|
||||
http_status :not_found unless Setting.lndhub_enabled?
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user