From 3ba333e80223e885ec5dae233f30812879790e1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Sun, 31 Mar 2024 12:08:51 +0300 Subject: [PATCH] Indentation --- app/controllers/lnurlpay_controller.rb | 34 +++++++++++++------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/app/controllers/lnurlpay_controller.rb b/app/controllers/lnurlpay_controller.rb index 457fbec..5fd32fb 100644 --- a/app/controllers/lnurlpay_controller.rb +++ b/app/controllers/lnurlpay_controller.rb @@ -69,26 +69,26 @@ class LnurlpayController < ApplicationController private - def find_user - @user = User.where(cn: params[:username], ou: Setting.primary_domain).first - http_status :not_found if @user.nil? - end + def find_user + @user = User.where(cn: params[:username], ou: Setting.primary_domain).first + http_status :not_found if @user.nil? + end - def metadata(address) - "[[\"text/identifier\", \"#{address}\"], [\"text/plain\", \"Send sats, receive thanks.\"]]" - end + def metadata(address) + "[[\"text/identifier\", \"#{address}\"], [\"text/plain\", \"Send sats, receive thanks.\"]]" + end - def valid_amount?(amount_in_sats) - amount_in_sats <= MAX_SATS && amount_in_sats >= MIN_SATS - end + def valid_amount?(amount_in_sats) + amount_in_sats <= MAX_SATS && amount_in_sats >= MIN_SATS + end - def valid_comment?(comment) - comment.length <= MAX_COMMENT_CHARS - end + def valid_comment?(comment) + comment.length <= MAX_COMMENT_CHARS + end - private + private - def check_service_available - http_status :not_found unless Setting.lndhub_enabled? - end + def check_service_available + http_status :not_found unless Setting.lndhub_enabled? + end end