refactor: Use first! for transfer lookup (#837)

Co-authored-by: sentry[bot] <39604003+sentry[bot]@users.noreply.github.com>
This commit is contained in:
sentry[bot]
2026-01-31 09:50:40 +01:00
committed by GitHub
parent ea80e92b6b
commit 8a8ae54954

View File

@@ -55,7 +55,7 @@ class TransfersController < ApplicationController
@transfer = Transfer
.where(id: params[:id])
.where(inflow_transaction_id: Current.family.transactions.select(:id))
.first
.first!
end
def transfer_params